classification
Title: Weakref types documentation bugs
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: barry, fdrake
Priority: normal Keywords:

Created on 2005-05-02 18:31 by barry, last changed 2006-07-29 20:05 by fdrake. This issue is now closed.

Messages (2)
msg25208 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2005-05-02 18:31
This page (section 3.3.3 of the library reference manual):

http://www.python.org/doc/current/lib/weakref-extension.html#weakref-extension

contains a description of what you need to do to make
your extension types weakrefable.  There are a few
problems with this page.

First, it really belongs in the C API and/or extending
and embedding documentation, not in the library
reference manual.

Second, the page describes having to set
Py_TPFLAGS_HAVE_WEAKREFS in tp_flags, but that's
unnecessary because Py_TPFLAGS_HAVE_WEAKREFS is already
in Py_TPFLAGS_DEFAULT.
msg25209 - (view) Author: Fred L. Drake, Jr. (fdrake) (Python committer) Date: 2006-07-29 20:05
Logged In: YES 
user_id=3066

Fixed in revision 50952.  The referenced section has been
moved to the Extending & Embedding manual.
History
Date User Action Args
2005-05-02 18:31:37barrycreate