[issue1248] ftplib needs a rewrite to use bytes/buffers
STINNER Victor
report at bugs.python.org
Wed Oct 22 00:57:01 CEST 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
- retrbinary() and storbinary() uses bytes (byte strings)
- retrlines() and storlines() uses str (unicode strings) with
charset=self.encoding
- command is an unicode string converted to byte string with
charset=self.encoding
So it's already possible to receive/send raw bytes, and forget my
previous message.
I see a potential but minor problem: if the server is running a POSIX
OS, it's not possible to open / rename / unlink a file with an invalid
name. ftp might allow bytes filename, but I prefer to leave ftplib
unchanged. If your FTP server is broken, fix your file system, fix your
configuration or use an old FTP client to fix the problem.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1248>
_______________________________________
More information about the Python-bugs-list
mailing list