En Fri, 19 Oct 2007 23:24:30 -0300, Scott David Daniels  
<[EMAIL PROTECTED]> escribió:

> [EMAIL PROTECTED] 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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to