Garrett Smith wrote:
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?
No, at least not
: 'zope3-dev@zope.org'
Subject: Re: [Zope3-dev] Proxy and __slots__
Garrett Smith wrote:
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