where do I need to "tab"?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Oct 20 04:32:31 CEST 2007


En Fri, 19 Oct 2007 23:24:30 -0300, Scott David Daniels  
<Scott.Daniels at Acm.Org> escribió:

> narutocanada at gmail.com wrote:
>> I'm following the python's translation of SICP:
>> http://codepoetics.com/wiki/index.php?title=Topics:SICP_in_other_languages:Python:Chapter_1
>> ...
> OK, you have a mix of Python 3,0 and current (2.5.1) Python.

All examples are OK for 2.5

>> a = 3
>> b = a + 1
> Fine in all
>> print a + b + (a * b)
> Fine in all but 3.0
> For 3.0, print becomes a function:
>      print(a + b + (a * b))
>> print (a == b)
> Fine in all
>> print b if ((b > a) and (b < (a * b))) else a
> Fine in 2.6, which isn't really out yet.

And in 2.5 too, like all the other examples. I wouldn't menction 3.0 yet.

-- 
Gabriel Genellina




More information about the Python-list mailing list