Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

deleting an object in python

>>> class Test:
...     def __del__(self):
...         print "deleted"
... 
>>> test = Test()
>>> del test
deleted
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #deleting #object #python
ADD COMMENT
Topic
Name
2+3 =