third_party.pylibs.pylint.src/test/input/func_noerror_e1101_but_getattr.py
root 4becf6f9e5 forget the past.
forget the past.
2006-04-26 10:48:09 +00:00

24 lines
473 B
Python

"""don't want E1101 if __getattr__ is defined"""
__revision__ = None
class MyString:
"""proxied string"""
def __init__(self, string):
self.string = string
def __getattr__(self, attr):
return getattr(self.string, attr)
def lower(self):
"""string.lower"""
return self.string.lower()
def upper(self):
"""string.upper"""
return self.string.upper()
MYSTRING = MyString("abc")
print MYSTRING.title()