STINNER Victor <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1248>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to