Mercurial > python-compiler.rs
view example/class.py @ 90:4e62a8927dcc
Add a symtable module, to obtain information about symbols.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 23 Jun 2016 03:16:59 +0100 |
parents | f27a4aee9dfa |
children |
line wrap: on
line source
class A: def a(self): print('a') class B(A): def b(self): print('b') a = A() b = B() a.a() b.b() b.a()