[Python-3000] No (C) optimization flag

Nick Coghlan ncoghlan at gmail.com
Fri Aug 10 18:36:16 CEST 2007


Guido van Rossum wrote:
> If you really need to step through the Python code, you can just
> sabotage the loading of the non-Python version, e.g. remove or rename
> the .so or .dll file temporarily.
> 
> I wonder about the usefulness of this debugging though -- if you're
> debugging something that requires you to step through the C code, how
> do you know that the same bug is present in the Python code you're
> stepping through instead? Otherwise (if you're debugging a bug in your
> own program) I'm not sure I see how stepping through the I/O library
> is helpful.
> 
> Sounds like what you're really after is *understanding* how the I/O
> library works. For that, perhaps reading the docs and then reading the
> source code would be more effective.

However we select between Python and native module versions, the build 
bots need be set up to run the modules both ways (with and without C 
optimisation).

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list