changeset: 77439:69177ff1a643 branch: 3.2 parent: 77424:62030ebb2b01 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 62030ebb2b01 -r 69177ff1a643 Doc/extending/newtypes.rst --- a/Doc/extending/newtypes.rst Thu Jun 14 15:37:21 2012 +0200 +++ b/Doc/extending/newtypes.rst Fri Jun 15 19:11:31 2012 +0200 @@ -1459,9 +1459,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 によって変換されたページ (->オリジナル) /