summaryrefslogtreecommitdiff
path: root/tests/run/class_scope.py
blob: 8a3f610ddda9f41d546d013ce7b16f8194b17d8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# mode:run
# tag: class, scope

class MethodRedef(object):
    """
    >>> MethodRedef().a(5)
    7
    """

    def a(self, i):
        return i+1

    def a(self, i):
        return i+2