memory

Gerrit Holl gerrit.holl at pobox.com
Fri Jan 28 07:25:09 EST 2000


Matt Cheselka wrote on 948999934:
> Hi,
> 
> Are there any issues with freeing memory in python?  Say for example I do a
> 
> 	d = array.array('i')
> 	for i in range (2000):
> 	    d.append(0)
> 
> Do I need to free 'd' before I quit the program?

Not necissary, but you _can_ do it with the del statement:
del d
removed the object and frees the memory.

regards,
Gerrit.

-- 
Please correct any bad English you encounter in my email message!
-----BEGIN GEEK CODE BLOCK----- http://www.geekcode.com
Version: 3.12
GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O !M !V PS+ PE?
Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y
-----END GEEK CODE BLOCK-----




More information about the Python-list mailing list