[Python-Dev] True division in embedded Python

Skip Montanaro skip@pobox.com
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
    >> appropriate...

    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.

Skip