classification
Title: New-in-3.4 weakref finalizer doc section is already out of date.
Type: behavior Stage: needs patch
Components: Documentation Versions: Python 3.4
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, pitrou, r.david.murray, sbt
Priority: normal Keywords:

Created on 2014-01-06 21:58 by r.david.murray, last changed 2014-01-08 23:56 by sbt.

Messages (2)
msg207489 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-01-06 21:58
The following discussion section in the weakref docs:

http://docs.python.org/dev/library/weakref.html#comparing-finalizers-with-del-methods

which was added in 3.4, is out of date because of the GC improvements.  It should be tweaked to match the new reality.

(I've already deleted the Note under __callback__.)
msg207714 - (view) Author: Richard Oudkerk (sbt) * (Python committer) Date: 2014-01-08 23:56
The following from the docs is wrong:

> ... module globals are no longer forced to None during interpreter 
> shutdown.

Actually, in 3.4 module globals *sometimes* get forced to None during interpreter shutdown, so the version the __del__ method can still raise an exception.
History
Date User Action Args
2014-01-08 23:56:32sbtsetmessages: + msg207714
2014-01-06 21:58:43r.david.murraycreate