Re: socket.makefile raises ValueError when mode = 'rt'

2013-01-09 Thread Terry Reedy
On 1/9/2013 9:14 AM, Antoon Pardon wrote: Op 01/09/13 14:54, Dave Angel schreef: On 01/09/2013 08:22 AM, Antoon Pardon wrote: This is using python 3.2. ... But the documentation states: socket.makefile(mode='r', buffering=None, *, encoding=None, errors=None, newline=None) Return a file o

Re: socket.makefile raises ValueError when mode = 'rt'

2013-01-09 Thread Antoon Pardon
Op 01/09/13 14:54, Dave Angel schreef: > On 01/09/2013 08:22 AM, Antoon Pardon wrote: >> This is using python 3.2. ... >> But the documentation states: >> socket.makefile(mode='r', buffering=None, *, encoding=None, errors=None, >> newline=None) >> Return a file object associated with the socket

Re: socket.makefile raises ValueError when mode = 'rt'

2013-01-09 Thread Dave Angel
On 01/09/2013 08:22 AM, Antoon Pardon wrote: > This is using python 3.2. > > I am writing somekind of wrapper around the ftplib. So > that you can work with it as if you are working with > local files. > > The idea is that you start with making a connection like > > rmt = FTP(...) > > and then do s