On 9/11/07, Jaap Spies <[EMAIL PROTECTED]> wrote:
> I did not find this here:
> http://docs.python.org/dev/3.0/whatsnew/3.0.html
>
> The 'old' behaviour seems to be continued:

Specifically what he said in his talk would change is the following:

fake-python3000> n = 5
fake-python3000> v = [n*n for n in range(15)]
fake-python3000> print(n)
5

I have no idea if he's implemented anything yet like this.

>
> Python 3.0a1 (py3k:57844, Aug 31 2007, 16:54:27) [MSC v.1310 32 bit (Intel)] 
> on win32
> Type "copyright", "credits" or "license()" for more information.
>
>      ****************************************************************
>      Personal firewall software may warn about the connection IDLE
>      makes to its subprocess using this computer's internal loopback
>      interface.  This connection is not visible on any external
>      interface and no data is sent to or received from the Internet.
>      ****************************************************************
>
> IDLE 3.0a1
>  >>> 1+1
> 2
>  >>> for i in range(10):
>      print(i)
>
>
> 0
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
>  >>> print(i)
> 9
>  >>>
>
> Jaap
>
> Notice the changed print statement: print is here a function!

You can already use print as a function right now:

>>> print(5)
5

Of course this is silly, since it's just "print (5)" and the parenthesis
do nothing.  Guido said at his talk that using print that was is
good practice though, in preparation for Python 3000.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to