GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Python2/temp.py at master · evlanov-alex/Python2 Expand file tree/ Copy pathtemp.pyMore file actions 21 lines (16 loc) · 479 Bytes / Copy pathtemp.pyFile metadata and controls21 lines (16 loc) · 479 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 import types class Person: def __init__(self, name, age): self.name = name self.age = age def get_age(self): return self.age def get_name(self): return self.name def __getattribute__(self, attr_name): if type(object.__getattribute__(self, attr_name)) is types.MethodType: print(attr_name) return object.__getattribute__(self, attr_name) x = Person("Lexa", 18) print(x.get_age()) print(x.get_name()) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |