123456789101112131415161718 |
- #!/usr/bin/python
- class Test(object):
- def __init__(self,a):
- self.a = a
- class Empty(object):
- def __init__(self):
- self.t_id = 1
- def __getattribute__(self, name):
- print "Called "+name
- return object.__getattribute__(self, name)
- def method(self):
- pass
- a = Empty()
- print a.t_id
- print a.method()
|