En Sun, 25 Feb 2007 19:07:38 -0300, John Nagle <[EMAIL PROTECTED]>  
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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to