Re: Python quirk in evaluation order

2009-07-31 Thread Dave Angel
James Stroud wrote: Python 2.5: mbi136-176 211% python *** Pasting of code with ">>>" or "..." has been enabled. ## ipython ## ##

Re: Python quirk in evaluation order

2009-07-31 Thread Peter Otten
James Stroud wrote: > py> b = 4 if True else b > py> b > 4 > Isn't the right side supposed to be evaluated first? Perhaps it becomes clearer if you change it a bit: >>> b = 4 if True else whatever >>> whatever Traceback (most recent call last): File "", line 1, in NameError: name 'whatever'

Re: Python quirk in evaluation order

2009-07-31 Thread Robert Kern
On 2009-07-31 15:11, James Stroud wrote: Python 2.5: mbi136-176 211% python *** Pasting of code with ">>>" or "..." has been enabled. ## ipython ## py

Re: Python quirk in evaluation order

2009-07-31 Thread Albert Hopkins
On Fri, 2009-07-31 at 13:11 -0700, James Stroud wrote: > Python 2.5: > > mbi136-176 211% python > *** Pasting of code with ">>>" or "..." has been enabled. > > ## ipython

Python quirk in evaluation order

2009-07-31 Thread James Stroud
Python 2.5: mbi136-176 211% python *** Pasting of code with ">>>" or "..." has been enabled. ## ipython ## ###