On Fri, 09 Jan 2009 19:33:53 +1000, James Mills wrote: > On Fri, Jan 9, 2009 at 7:15 PM, Marc 'BlackJack' Rintsch > <bj_...@gmx.net> wrote: >>> print("Filesize : %d" % (filesize)) print("Image size : >>> %dx%d" % (width, height)) print("Bytes per Pixel: %d" % (blocksize)) >> >> Why parentheses around ``print``\s "argument"? In Python <3 ``print`` >> is a statement and not a function. > > Not true as of 2.6+ and 3.0+ > > print is now a function.
Not so. print is still a statement in 2.6. $ python2.6 Python 2.6.1 (r261:67515, Dec 24 2008, 00:33:13) [GCC 4.1.2 20070502 (Red Hat 4.1.2-12)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> >>> print 23 23 -- Steven -- http://mail.python.org/mailman/listinfo/python-list