[Python-3000] No (C) optimization flag
Brett Cannon
brett at python.org
Fri Aug 10 21:11:12 CEST 2007
On 8/10/07, Nick Coghlan <ncoghlan at gmail.com> wrote:
> 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).
>
Part of Alexandre's SoC work is to come up with a mechanism to do this.
-Brett
More information about the Python-3000
mailing list