|
[Jython-bugs] [issue1851] weakrefs broken
From: danilo2 <report@bu...> - 2012-03-15 15:19
|
New submission from danilo2 <wojtek.danilo@...>:
Hi!
weakrefs in juthon 2.5.2 does not work as they should. concider this code from jython manual:
import weakref
class Object:
pass
o = Object()
r = weakref.ref(o)
o2 = r()
o is o2
del o, o2
print '!'
print r()
as a reusult we can see "<_main_.Object instance at 0x15434>" not None
----------
components: Library
messages: 6797
nosy: danilo2
severity: major
status: open
title: weakrefs broken
type: behaviour
versions: 2.5.2
_______________________________________
Jython tracker <report@...>
<http://bugs.jython.org/issue1851>
_______________________________________
|
| Thread | Author | Date |
|---|---|---|
| [Jython-bugs] [issue1851] weakrefs broken | danilo2 <report@bu...> |