view example/class.py @ 18:51ef651266b1

Fix expr_contexts. Do not always use Load, get the real context from the node.
author Bastien Orivel <eijebong@bananium.fr>
date Fri, 03 Jun 2016 00:10:41 +0200
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()