Sometime I'd like to spawn a child process with the same optimization flags used to start the parent.
I can use something like:
optimize = not __debug__
But this way I match both -O
and -OO
flags.
Is there some python internal status that contains that info?