From: jason k. <re...@bu...> - 2010-03-29 00:01:52
|
New submission from jason kirtland <je...@di...>: It seems like some styles of function invocation might leak a strong reference to the function arguments. Given a def make_ref(obj, kwarg=True): return weakref.ref(obj, callback) Calling make_ref(someobj) returns a weakref that functions as expected, but make_ref(someobj, kwarg=True) returns a weakref that seemingly can't ever go stale. Test case attached. ---------- components: Core files: weakly.py messages: 5605 nosy: jek severity: normal status: open title: weakref reference count leak when kwargs are used type: behaviour versions: 2.5.1 Added file: http://bugs.jython.org/file778/weakly.py _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue1586> _______________________________________ |