Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #15441

Re: memory management

References <3CB1190388197146B35D522652EAB501014C71D0C4@MESAMAIL01.acctcom.mesa>
Date 2011-11-08 08:40 +1100
Subject Re: memory management
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2518.1320702059.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Nov 8, 2011 at 6:43 AM, Juan Declet-Barreto
<Juan.Declet-Barreto@mesaaz.gov> wrote:
>
> 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 seems a little unusual - it crashes more than its own process? If
you use Start... Run and type in "cmd" (or use the "Command Prompt"
icon, whereever that is), and invoke Python from there, it crashes cmd
as well as Python? If so, I'd be suspecting either some really weird
bug in the Python interpreter (try upgrading to 2.7), or a hardware
fault in your computer (try running MemTest or running it on a
different computer).

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: memory management Chris Angelico <rosuav@gmail.com> - 2011-11-08 08:40 +1100

csiph-web