This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: weakref example broken
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, georg.brandl, paolo_veronelli, pterk, rhettinger
Priority: normal Keywords:

Created on 2005-06-28 10:32 by paolo_veronelli, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
extref.py paolo_veronelli, 2005-06-28 10:32 Working example
Messages (4)
msg25659 - (view) Author: paolo veronelli (paolo_veronelli) Date: 2005-06-28 10:32
Surely the example in python2.4/lib/weakref-objects.html
 is untested .Bad story.

Attached a working version which I suppose correct it .
msg25660 - (view) Author: Peter van Kampen (pterk) Date: 2005-06-29 19:46
Logged In: YES 
user_id=174455

I can confirm this (in 2.5a0). It seems untested as it
contains several small errors. I have submitted a doc-patch
with working code that is also a simplified version. See
patch #1229935.
msg25661 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-07-02 10:45
Logged In: YES 
user_id=1188172

Fixed in Doc/lib/libweakref.py r1.28, r1.27.4.1.
msg25662 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-07-02 17:49
Logged In: YES 
user_id=80475

It would be useful to add a testcase cover the examples in
the docs.  See test_itertools.py for an example of how that
is done.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42134
2005-06-28 10:32:35paolo_veronellicreate