summaryrefslogtreecommitdiff
path: root/tests/interp/python-self/subs.py
blob: 4d1009d6b3548579b7cfa3148ad4986c3cfeaf88 (plain)
1
2
3
4
5
6
7
8
9
10
import oword
import interpreter

def __init__(self):
    if hasattr(interpreter,'this'):
        if self is not interpreter.this:
            print "__init__: self not is this"
    else:
        print "__init__: no 'this' attribute"