[Python-bugs-list] [ python-Bugs-423851 ] Python 2.1 Falling Over On Win2K
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 13 May 2001 23:43:17 -0700
Bugs item #423851, was updated on 2001-05-13 23:04
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=423851&group_id=5470
Category: Windows
>Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Paul Prescod (prescod)
Summary: Python 2.1 Falling Over On Win2K
Initial Comment:
Platform: Windows 2000
Python Version: 2.1
Box: AMD Thunderbird 750 with 128meg
Hi,
I don't know if anyone else has experienced this so I
will put it out there regardless.
I have been using the distribution of Python 2.1 which
comes with ActiveState ActivePython.
If I walk a directory using the os.path.walk module
and return the results to a list and then try to
display this list, Python falls flat on it's face and
shuts down.
However this does not occur when using Python 2.0.
The piece of code I have been using is as follows:
import os
def walker(arg, dirname, filenames):
# Create A List Of Files In A Directory
for files in filenames:
arg.append(os.path.join(dirname, files))
DirLst = []
os.path.walk('c:\test\', walker, DirLst)
DirLst # At this point the command should display the
list to the screen, instead the program shuts itself
down
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2001-05-13 23:43
Message:
Logged In: YES
user_id=31435
Assigned to Paul.
Worked fine for me on a directory w/ over 10,000 files
under it, but I'm not using the ActiveState distribution.
If this is specific to ActiveState Python, you should
report the bug to them.
"Falls on its face and shuts down" doesn't mean anything to
me. Were you running from a DOS box Python, or perhaps
from within PythonWin, or Komodo, or ...? Not enough info
here. I tried it from a DOS box Python. If it works for
you under a DOS box Python, then problems specific to
PythonWin or Komodo definitely don't belong here.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=423851&group_id=5470