Hi,
My first question regarding that would be: why use zope.proxy for it.
Personally - not knowing what exactly you have in mind ofc - i'd use
something along the lines of
class Proxy(object):
def __init__(self, obj):
self.obj = obj
def __getattr__(self, attribute):
Hi,
Well if it's invalid i won't bother with it but say:
- i forgot a self - that is true
- if added it does NOT loop infinitely
- its not my example its taken from python cookbook
- it works with new style objects - __getattribute__ does something
different
But frankly i was only trying to