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


Groups > comp.lang.python > #15441

Re: memory management

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'bug': 0.02; 'interpreter': 0.05; 'python': 0.08; 'am,': 0.12; '(when': 0.16; 'crashes': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'os.walk': 0.16; 'process?': 0.16; 'subject:memory': 0.16; 'wrote:': 0.18; 'python?': 0.18; 'received:209.85.210.174': 0.18; 'received:mail-iy0-f174.google.com': 0.18; 'seems': 0.19; '(or': 0.22; 'structure': 0.23; 'header:In-Reply-To:1': 0.23; 'shell': 0.24; 'script': 0.28; 'weird': 0.28; 'message-id:@mail.gmail.com': 0.29; 'cmd': 0.30; 'invoke': 0.30; 'nov': 0.31; 'adds': 0.32; 'tue,': 0.32; 'to:addr:python-list': 0.32; 'list.': 0.34; 'fault': 0.34; 'running': 0.35; 'file': 0.36; 'but': 0.37; 'using': 0.37; 'run': 0.38; 'received:google.com': 0.38; 'some': 0.38; 'received:209.85': 0.38; "i'd": 0.39; 'either': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'really': 0.40; 'more': 0.60; 'your': 0.61; '2011': 0.62; 'thousands': 0.64; 'loose': 0.67; 'directories,': 0.84; 'subject:management': 0.84; 'suspecting': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=yADar3D7jzKBUrgNe8nA7Qvwm896UHk9hnYqapgpq4E=; b=l8THVT/y5wOUfGYJmgEgJ5eN5SUOCAsEDSK1dSgOT333JmwLAgK0d/wcxKdDQp4Cu+ YDArD5XLtOSNrZJ4qpFUyKQnkuWv3UDm23dRY9NU1is7vrrfARQ+fjLQHK0ZLvbnVIRZ 94wsNAkQwVwy93cN4/QwU+SBNvxvQddHzfMlU=
MIME-Version 1.0
In-Reply-To <3CB1190388197146B35D522652EAB501014C71D0C4@MESAMAIL01.acctcom.mesa>
References <3CB1190388197146B35D522652EAB501014C71D0C4@MESAMAIL01.acctcom.mesa>
Date Tue, 8 Nov 2011 08:40:56 +1100
Subject Re: memory management
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2518.1320702059.27778.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1320702059 news.xs4all.nl 6927 [2001:888:2000:d::a6]:44595
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:15441

Show key headers only | 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