[Python-bugs-list] [ python-Bugs-423851 ] Python 2.1 Falling Over On Win2K

noreply@sourceforge.net noreply@sourceforge.net
Sun, 13 May 2001 23:04:26 -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: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
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




----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=423851&group_id=5470