Implementing file reading in C/Python

James Mills prologic at shortcircuit.net.au
Fri Jan 9 10:33:53 CET 2009


On Fri, Jan 9, 2009 at 7:15 PM, Marc 'BlackJack' Rintsch <bj_666 at 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.

cheers
James



More information about the Python-list mailing list