print is not a function

Marc Boeren M.Boeren at guidance.nl
Wed Oct 8 05:56:15 EDT 2003


Hi,

> quite often there is a need to just print out the items of a list.
> [ prt(x) for x in my_list ]

for x in my_list: print x

(no need for a list comprehension here)


Cheerio, Marc.





More information about the Python-list mailing list