Werner
--
You received this message because you are subscribed to the Google Groups "pypubsub" group.
To post to this group, send email to pypu...@googlegroups.com.
To unsubscribe from this group, send email to pypubsub+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pypubsub?hl=en.
Passing two -O flags to the Python interpreter (-OO) will cause the bytecode compiler to perform optimizations that could in some rare cases result in malfunctioning programs. Currently only __doc__ strings are removed from the bytecode, resulting in more compact .pyo files. Since some programs may rely on having these available, you should only use this option if you know what you’re doing.
Werner
Do you really need -OO? All it does is remove doc strings. See the following advice from Python manual:�
Passing two -O flags to the Python interpreter (-OO) will cause the bytecode compiler to perform optimizations that could in some rare cases result in malfunctioning programs. Currently only __doc__ strings are removed from the bytecode, resulting in more compact .pyo files. Since some programs may rely on having these available, you should only use this option if you know what you�re doing.
Sorry, I'm sure this is disappointing answer.
On 12/11/2012 15:25, oliver wrote:
Do you really need -OO? All it does is remove doc strings. See the following advice from Python manual:
Passing two -O flags to the Python interpreter (-OO) will cause the bytecode compiler to perform optimizations that could in some rare cases result in malfunctioning programs. Currently only __doc__ strings are removed from the bytecode, resulting in more compact .pyo files. Since some programs may rely on having these available, you should only use this option if you know what you’re doing.
Sorry, I'm sure this is disappointing answer.
An o.k. work around and the 1.5MB more space is not really an issue.
FYI, I now use "optimize": 1 instead of "optimize": 2 in the setup.py py2exe options.
I see that __doc__ is used as a check in a few places. What is the reason to check for the __doc__? Would you consider something else, e.g. len(dir(pyClassObj)) > 2 in addDefnFromClassObj and something similar in the other cases? In other words would you accept a patch along those lines?
Have a nice day
Werner
--
You received this message because you are subscribed to the Google Groups "pypubsub" group.
To post to this group, send email to pypu...@googlegroups.com.
To unsubscribe from this group, send email to pypubsub+u...@googlegroups.com.
Werner
--
You received this message because you are subscribed to the Google Groups "pypubsub" group.
To post to this group, send email to pypu...@googlegroups.com.
To unsubscribe from this group, send email to pypubsub+unsubscribe@googlegroups.com.