Re: [Python-Dev] optimizing out local variables

2008-02-25 Thread Christian Heimes
Gregory P. Smith wrote: > On 2/24/08, Guido van Rossum <[EMAIL PROTECTED]> wrote: >> Let's only do it for -O; the optimization may interfere with debugging the >> code. > > > Does anyone ever actually bother to use -O? People may start bothering to use -O when it's giving them a speedup for real

Re: [Python-Dev] optimizing out local variables

2008-02-24 Thread Gregory P. Smith
On 2/24/08, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Let's only do it for -O; the optimization may interfere with debugging the > code. Does anyone ever actually bother to use -O? On Sun, Feb 24, 2008 at 6:27 PM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > > Short description (see http://

Re: [Python-Dev] optimizing out local variables

2008-02-24 Thread Guido van Rossum
Let's only do it for -O; the optimization may interfere with debugging the code. On Sun, Feb 24, 2008 at 6:27 PM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > Short description (see http://bugs.python.org/issue2181 for the patch > and more details): > > Optimize code like: >x = any_expression >

Re: [Python-Dev] optimizing out local variables

2008-02-24 Thread Brett Cannon
On Sun, Feb 24, 2008 at 6:27 PM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > Short description (see http://bugs.python.org/issue2181 for the patch > and more details): > > Optimize code like: >x = any_expression >return x > > to: >return any_expression > > The local variable x is no l