[New-bugs-announce] [issue4791] retrlines('LIST') and dir hang at end of listing in ftplib

Christopher Mahan report at bugs.python.org
Wed Dec 31 14:01:01 CET 2008

New submission from Christopher Mahan <chris.mahan at gmail.com>:

The python program crashes (stops responding) both from the command line
and in IDLE (ver 3.0), after listing all the files in the approprate
directory, both with ftp.dir() and with ftp.retrlines('LIST') (see prog
listing below).

I have to close the window (both window shell and IDLE). No other key
combo responds.

Python env (from IDLE):
Python 3.0 (r30:67507, Dec  3 2008, 20:14:27) [MSC v.1500 32 bit
(Intel)] on win32


import ftplib

ftp = ftplib.FTP('ftp.edgecastcdn.net', user='theusername',

The username and password are correct.
I am able to use the ftp resource with filezilla (3.1.6) with no problem.

This runs on a Windows Server 2003 Standard Edition, Service Pack 2.

This is also a completely clean install of Python 3.0. I installed it,
then wrote this program.

Python 2.5 is installed on this server and runs fine.

Any questions: chris.mahan at gmail.com

components: Extension Modules
messages: 78603
nosy: chris.mahan
severity: normal
status: open
title: retrlines('LIST') and dir hang at end of listing in ftplib
type: crash
versions: Python 3.0

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list