Hello, i have class
class SomeClass:
def __init__(self):
self.SomeFunction()
def SomeFunction(self):
try:
self.something = 5
except:
print 'error'
print self.something
tempObject = SomeClass()
And the last string occurs an error:
AttributeError: something
Why?