[Zope3-dev] Proxy and __slots__

Garrett Smith garrett at mojave-corp.com
Sat Aug 27 08:51:00 EDT 2005


I'd like to create a proxy where __slots__ is determined (or appended to) when the proxy is constructed. E.g.

>>> foo = Foo()
>>> bar = SomeProxy(foo, 'baz')
>>> bar.baz = 123
>>> hasattr(foo, 'baz')
False
>>> hasattr(bar, 'baz')
True

Is it possible to do this?

 -- Garrett


More information about the Zope3-dev mailing list