sir,
I would like to know about 'asser't keyword how it works in the
fallowing program
class myClass:
count = 0
def __init__(self):
myClass.count = myClass.count + 1
def __del__(self):
myClass.count =myClass.count -1
assert myClass.count>0
def howmany(self):
return myClass.count>>>a=myClass() >>>b=myClass() >>>a.howmany() >>>del b >>>del a _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
