This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients neologix, thebits, vstinner
Date 2011-05-17.21:13:35
SpamBayes Score 5.7488447e-05
Marked as misclassified No
Message-id <1305666815.86.0.286638262759.issue12098@psf.upfronthosting.co.za>
In-reply-to
Content
Under Linux, child processes are created with fork(), so they're run with the exact same environment as the parent process (among which sys.flags.optimize).
I don't know Windows at all, but since I've heard it doesn't have fork(), my guess is that the command-line is constructed before creating the child process, and maybe the -O command line argument is lost.
Just a guess.
History
Date User Action Args
2011-05-17 21:13:35neologixsetrecipients: + neologix, vstinner, thebits
2011-05-17 21:13:35neologixsetmessageid: <1305666815.86.0.286638262759.issue12098@psf.upfronthosting.co.za>
2011-05-17 21:13:35neologixlinkissue12098 messages
2011-05-17 21:13:35neologixcreate