Carlo Bramini added the comment:

Hello,
no problem, the fix on GetModuleHandle() can be avoided without problems if you 
want. Anyways, although nowadays the "hybrid" operating systems like Windows 
9x/ME are dead and burried, in this particular case I would still suggest to 
use directly GetModuleHandleA(), because the instance to find is just 
"KERNEL32" and it is not made by esoteric characters. Normally, as developer 
for Windows platform, I would surely agree to use the wide char version, but 
due to the highly portable nature of Python, with my experience I learned that 
some particular conditions can make the cross compiling for Windows easier, if 
you do not explicitely add "-fshort-wchar".
BTW, the ".dll" in the string of the parameter is redundant as you can see from 
MSDN page of GetModuleHandle(), there are also few other points in the sources 
of Python that can be "optimized", but afterall these are just "fine" 
improvements, not so much important if they are compared to other things...

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10560>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to