[issue20221] #define hypot _hypot conflicts with existing definition

2014-01-28 Thread Brecht Van Lommel
Brecht Van Lommel added the comment: For Visual Studio 2013, here's how to redo the problem. Take this simple program: #include int main(int argc, char **argv) { return (int)hypot(rand(), rand()); } And compile it: cl.exe test.c -I include/python3.3 lib/python33.lib /W4 c:\pr

[issue20221] #define hypot _hypot conflicts with existing definition

2014-01-23 Thread Brecht Van Lommel
Brecht Van Lommel added the comment: We have a similar issue in Blender (where Python is embedded), but it's actually causing a crash instead of only a compiler warning: https://developer.blender.org/T38256 The code in the Visual Studio 2013 math.h looks like this: __inline double __CR

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-08 Thread Brecht Van Lommel
Brecht Van Lommel added the comment: I tested the patch on Windows and can confirm it solves the problem for Blender. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-09-16 Thread Brecht Van Lommel
Brecht Van Lommel added the comment: With the language summit passed some time ago, is there now a more clear picture of how this would fit in the initialisation process? Any idea of what a proper implementation would look like, or is the message still to wait? -- nosy