Weakref problem: no way to get original object from proxy object?
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Sun Feb 25 21:55:24 EST 2007
En Sun, 25 Feb 2007 19:07:38 -0300, John Nagle <nagle at animats.com>
escribió:
> Is there some way to get a strong ref to the original object back
> from a weakref proxy object? I can't find any Python function to do
> this.
> ".ref()" doesn't work on proxy objects.
Add a method to the original class that just returns self.
About your backref function: Yes, I usually use something like that, it's
annoying having to handle None always.
--
Gabriel Genellina
More information about the Python-list
mailing list