]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Make staticmethods and classmethods participate in GC.
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 8 Apr 2003 21:28:47 +0000 (21:28 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 8 Apr 2003 21:28:47 +0000 (21:28 +0000)
commit400d8ee6fa59bd2969c67cbd1e4f6d9663edb090
treeaefe767a61d9c1e08230262f3661f6cc7e032da6
parent547eb42d75c888fa5ac43275d3cf874099ea0d78
Make staticmethods and classmethods participate in GC.

If a class was defined inside a function, used a static or class
method, and used super() inside the method body, it would be caught in
an uncollectable cycle.  (Simplified version: The static/class method
object would point to a function object with a closure that referred
to the class.)

Bugfix candidate.
Objects/funcobject.c