changeset: 77441:0ac1f90954dc branch: 2.7 parent: 77438:1c9635109079 user: Antoine Pitrou date: Fri Jun 15 19:11:31 2012 +0200 files: Doc/extending/newtypes.rst description: Issue #14933: fix misleading doc about weakref support in extension types. diff -r 1c9635109079 -r 0ac1f90954dc Doc/extending/newtypes.rst --- a/Doc/extending/newtypes.rst Fri Jun 15 18:33:48 2012 +0200 +++ b/Doc/extending/newtypes.rst Fri Jun 15 19:11:31 2012 +0200 @@ -1521,9 +1521,8 @@ } The only further addition is that the destructor needs to call the weak -reference manager to clear any weak references. This should be done before any -other parts of the destruction have occurred, but is only required if the weak -reference list is non-*NULL*:: +reference manager to clear any weak references. This is only required if the +weak reference list is non-*NULL*:: static void instance_dealloc(PyInstanceObject *inst)

AltStyle によって変換されたページ (->オリジナル) /