Wrapper objects

Nick Coghlan ncoghlan at iinet.net.au
Fri Dec 10 06:34:55 EST 2004


Simon Brunning wrote:
> On 9 Dec 2004 06:11:41 -0800, Egil M?ller <redhog at takeit.se> wrote:
> 
>>Is there any way to create transparent wrapper objects in Python?
> 
> 
> This work - <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52295>?
> 

Only for old-style classes, though. If you inherit from object or another 
builtin, that recipe fails.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net



More information about the Python-list mailing list