[Tutor] assert

shivayogi kumbar shivayogiks at gmail.com
Fri Dec 23 12:18:05 CET 2005

   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

>>>del b
>>>del a

More information about the Tutor mailing list