[Python-Dev] True division in embedded Python
Wed, 29 May 2002 16:40:26 -0500
>> My second question is how do you enable true division in embedded
>> Python? I've read the documentation and I couldn't find anything
Guido> On the command line it's -Qnew. Looking through the source of
Guido> Modules/main.c, it looks like setting the undocumented global
Guido> variable _Py_QnewFlag to 1 would do it.
Sounds like there's a need for some documented access functions. At the
very least the docs should mention how programmers must currently set these
flags. I'll be happy to send in a patch for the ext/embed docs and/or
provide a patch to implement the necessary calls.