2014-10-10 17:41:08 +00:00
|
|
|
# pylint: disable=R0903, print-statement
|
2006-04-26 10:48:09 +00:00
|
|
|
"""yo"""
|
|
|
|
|
|
|
|
__revision__ = '$I$'
|
|
|
|
|
2013-06-18 17:20:41 +00:00
|
|
|
class Aaaa(object):
|
2006-04-26 10:48:09 +00:00
|
|
|
"""class with attributes defined in wrong order"""
|
|
|
|
def __init__(self):
|
|
|
|
var1 = self._var2
|
|
|
|
self._var2 = 3
|
|
|
|
print var1
|
|
|
|
|
|
|
|
class Bbbb(object):
|
|
|
|
"""hop"""
|
|
|
|
__revision__ = __revision__ # no problemo marge
|
2013-06-18 12:36:29 +00:00
|
|
|
|
2009-03-23 17:43:32 +00:00
|
|
|
def __getattr__(self, attr):
|
2010-04-19 09:18:08 +00:00
|
|
|
# pylint: disable=W0201
|
2009-03-23 17:43:32 +00:00
|
|
|
try:
|
|
|
|
return self.__repo
|
|
|
|
except AttributeError:
|
|
|
|
self.__repo = attr
|
|
|
|
return attr
|
2009-03-24 10:35:09 +00:00
|
|
|
|
2013-06-18 12:36:29 +00:00
|
|
|
|
2009-03-24 10:35:09 +00:00
|
|
|
def catchme(self, attr):
|
|
|
|
"""no AttributeError catched"""
|
2010-04-19 09:18:08 +00:00
|
|
|
# pylint: disable=W0201
|
2009-03-24 10:35:09 +00:00
|
|
|
try:
|
|
|
|
return self._repo
|
|
|
|
except ValueError:
|
|
|
|
self._repo = attr
|
|
|
|
return attr
|