Re: [Zope3-dev] Proxy and __slots__

2005-08-29 Thread Jim Fulton
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

RE: [Zope3-dev] Proxy and __slots__

2005-08-29 Thread Garrett Smith
: '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