class Test():
x = 'x in self'
def do_stuff(self):
x = 'just your general x'
print(x)
print(self.x)
#print(do_stuff) #not defined
print(self.do_stuff)
t = Test()
t.do_stuff()
Y2xhc3MgVGVzdCgpOgogICAgeCA9ICd4IGluIHNlbGYnCiAgICBkZWYgZG9fc3R1ZmYoc2VsZik6CiAgICAgICAgeCA9ICdqdXN0IHlvdXIgZ2VuZXJhbCB4JwogICAgICAgIHByaW50KHgpCiAgICAgICAgcHJpbnQoc2VsZi54KQogICAgICAgICNwcmludChkb19zdHVmZikgI25vdCBkZWZpbmVkCiAgICAgICAgcHJpbnQoc2VsZi5kb19zdHVmZikKCgp0ID0gVGVzdCgpCnQuZG9fc3R1ZmYoKQo=