Lie, >> Here's what I get: >> >> >>> print( 3, 4 ) >> 3 4
> Are you sure it isn't python 3.x you're playing with? The reason why simple > print function "works" in python 2.x is because of a syntactical coincidence, it is still a 100% statement. Yes, I'm sure :) I restarted IDLE and pasted my session output below: <quote> Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 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 2.6.1 >>> from __future__ import print_function >>> print( 3, 4 ) 3 4 >>> </quote> Malcolm ----- Original message ----- From: "Lie Ryan" <lie.1...@gmail.com> To: tutor@python.org Date: Tue, 10 Feb 2009 15:15:01 +0000 (UTC) Subject: Re: [Tutor] Simple PassGen On Tue, 10 Feb 2009 09:43:18 -0500, python wrote: > Kent, > >> Except they are not equivalent when you want to print more than one >> thing. ... >> Python 2.6: >> In [1]: print(3, 4) >> (3, 4) > > I'm running Python 2.6.1 (32-bit) on Windows XP. > > I don't get the tuple-like output that you get. > > Here's what I get: > >>>> print( 3, 4 ) > 3 4 Are you sure it isn't python 3.x you're playing with? The reason why simple print function "works" in python 2.x is because of a syntactical coincidence, it is still a 100% statement. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor