print "GarbageCollector: collected %d objects." % (gc.collect())
work in 2.4 but not in 3.1?
Define "works". What error are you getting? Include the exact message
and full error traceback.
Or if no exception is being raised, explain exactly how is it behaving
differently from your expectations.
Cheers,
Chris
--
http://blog.rebertia.com
Because print is a function in 3.1, so you have to follow it with
a parenthesis.
Regards,
Martin
For this and other differences introduced in the Python 3.x series, see
<URL:http://www.python.org/dev/peps/pep-3100/>.
--
\ “Please do not feed the animals. If you have any suitable food, |
`\ give it to the guard on duty.” —zoo, Budapest |
_o__) |
Ben Finney
> For this and other differences introduced in the Python 3.x series, see
> <URL:http://www.python.org/dev/peps/pep-3100/>.
People never thank you for an "RTFM" response.
It's a good thing I avoid giving such responses, then. (Pointing someone
to the specific document isn't “RTFM”.)
--
\ “Leave nothing to chance. Overlook nothing. Combine |
`\ contradictory observations. Allow yourself enough time.” |
_o__) —Hippocrates |
Ben Finney