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 using the standard __slot__ mechanism.
Jim
--
Jim Fulton mailto:[EMAIL PROTECTED] Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com