Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion 2.4 VS 3.1 for simple print

Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!news.mixmin.net!not-for-mail
From: Ben Finney <ben+pyt...@benfinney.id.au>
Newsgroups: comp.lang.python
Subject: Re: 2.4 VS 3.1 for simple print
Date: Sat, 11 Jul 2009 09:37:53 +1000
Organization: Mixmin
Lines: 16
Message-ID: <87hbxkm7n2.fsf@benfinney.id.au>
References: <qfedne7Zv6A1MsrXnZ2dnUVZ_vadnZ2d@earthlink.com>
NNTP-Posting-Host: acdf78d43b5a0374c5e005f2d6325960
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@mixmin.net
NNTP-Posting-Date: Fri, 10 Jul 2009 23:37:54 +0000 (UTC)
X-Public-Key-Fingerprint: 9CFE 12B0 791A 4267 887F  520C B7AC 2E51 BD41 714B
Cancel-Lock: sha1:rpeTKt3CDYFcZddYSuh5vyd1eh4=
X-Public-Key-ID: 0xBD41714B
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)
X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-gpg.asc
X-Post-From: Ben Finney <bignose+hates-s...@benfinney.id.au>

"earthlink" <noen> 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
<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