Weakref problem: no way to get original object from proxy object?
John Nagle
nagle at animats.com
Mon Feb 26 01:34:39 EST 2007
Gabriel Genellina wrote:
> 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.
Yes, that works. Thanks.
John Nagle
More information about the Python-list
mailing list