memory management

Juan Declet-Barreto Juan.Declet-Barreto at MesaAZ.gov
Mon Nov 7 14:43:05 EST 2011


Hi,

Can anyone provide links or basic info on memory management, variable dereferencing, or the like? I have a script that traverses a file structure using os.walk and adds directory names to a list. It works for a small number of directories, but when I set it loose on a directory with thousands of dirs/subdirs, it crashes the DOS session and also the Python shell (when I run it from the shell).  This makes it difficult to figure out if the allocated memory or heap space for the DOS/shell session have overflown, or why it is crashing.

Juan Declet-Barreto [cid:image001.png at 01CC9D4A.CB6B9D70]
GIS Specialist, Information Technology Dept.
City of Mesa
Office: 480.644.4751
juan.declet-barreto at mesaaz.gov<mailto:juan.declet-barreto at mesaaz.gov>

[cid:image002.png at 01CC9D4A.CB6B9D70]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111107/09dd282e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1454 bytes
Desc: image001.png
URL: <http://mail.python.org/pipermail/python-list/attachments/20111107/09dd282e/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 11402 bytes
Desc: image002.png
URL: <http://mail.python.org/pipermail/python-list/attachments/20111107/09dd282e/attachment-0001.png>


More information about the Python-list mailing list