2.4 VS 3.1 for simple print

"Martin v. Löwis" martin at v.loewis.de
Fri Jul 10 17:30:53 EDT 2009


> Why does
> print "GarbageCollector: collected %d objects." % (gc.collect())
> 
> work in 2.4 but not in 3.1?

Because print is a function in 3.1, so you have to follow it with
a parenthesis.

Regards,
Martin



More information about the Python-list mailing list