[issue6070] Python 2.6 makes .pyc/.pyo bytecode files executable

Marco Buccini report at bugs.python.org
Tue Jul 7 11:28:24 CEST 2009


Marco Buccini <marcusbu at gmail.com> added the comment:

@r.david.murray:
Does this works on Windows? Are you sure Oleg? :)
Since you've done this:
#ifndef MS_WINDOWS
 /* mode = ..*/
#endif

but on Windows the compiler "jumps" over this code, so you can get a
binding error, since it doesn't find the variable "mode"...

E.g (on my Debian):

#ifndef __GNUC__
 #define X 10
#endif

int main()
{
    printf("%d\n", X);
}

it gives error: ‘X’ undeclared (first use in this function)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6070>
_______________________________________


More information about the Python-bugs-list mailing list