If I am creating an exception class, along with a stack
class CustomError(Exception):
def __init__(self):
self.contents=[]
print "Stack Created"
How can I make it so that if
x=CustomError()
,
the stack contents will be
x.historical.contents
, not
x.contents
?