Re: 2.4 VS 3.1 for simple print

2009-07-12 Thread Ben Finney
Lawrence D'Oliveiro writes: > In message <87hbxkm7n2@benfinney.id.au>, Ben Finney wrote: > > > For this and other differences introduced in the Python 3.x series, see > > http://www.python.org/dev/peps/pep-3100/>. > > People never thank you for an "RTFM" response. It's a good thing I avoid

Re: 2.4 VS 3.1 for simple print

2009-07-11 Thread Lawrence D'Oliveiro
In message <87hbxkm7n2@benfinney.id.au>, Ben Finney wrote: > For this and other differences introduced in the Python 3.x series, see > http://www.python.org/dev/peps/pep-3100/>. People never thank you for an "RTFM" response. -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.4 VS 3.1 for simple print

2009-07-10 Thread Ben Finney
"earthlink" writes: > Why does > > print "GarbageCollector: collected %d objects." % (gc.collect()) > > work in 2.4 but not in 3.1? For this and other differences introduced in the Python 3.x series, see http://www.python.org/dev/peps/pep-3100/>. -- \ “Please do not feed the animals. I

Re: 2.4 VS 3.1 for simple print

2009-07-10 Thread Martin v. Löwis
> 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 -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.4 VS 3.1 for simple print

2009-07-10 Thread Chris Rebert
On Fri, Jul 10, 2009 at 2:16 PM, earthlink wrote: > Why does > 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, explai

2.4 VS 3.1 for simple print

2009-07-10 Thread earthlink
Why does print "GarbageCollector: collected %d objects." % (gc.collect()) work in 2.4 but not in 3.1? -- http://mail.python.org/mailman/listinfo/python-list