James Stroud wrote:
Python 2.5:
mbi136-176 211% python
*** Pasting of code with ">>>" or "..." has been enabled.
## ipython ##
##
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'
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
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 2.5:
mbi136-176 211% python
*** Pasting of code with ">>>" or "..." has been enabled.
## ipython ##
###