[Python-Dev] Possible optimization for LOAD_FAST ?

skip at pobox.com skip at pobox.com
Fri Dec 31 17:36:36 CET 2010

    >> Another example. I can totally remove the variable i, just using the
    >> stack, so a debugger (or, in general, having the tracing enabled)
    >> cannot even find something to change about it.

    Ethan> -1

    Ethan> Debugging is challenging enough as it is -- why would you want to
    Ethan> make it even more difficult?

I don't know.  Maybe he wants his program to run faster.

If you use print statements for the bulk of your debugging (many people do),
unrolling loops doesn't affect your debugging ability.


More information about the Python-Dev mailing list