This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients amaury.forgeotdarc, aymanhs, danonymous, giampaolo.rodola, pitrou, rdevaughn, vstinner
Date 2010-08-27.17:58:02
SpamBayes Score 4.4815824e-05
Marked as misclassified No
Message-id <1282931879.3264.8.camel@localhost.localdomain>
In-reply-to <1282660175.5.0.607075455214.issue6822@psf.upfronthosting.co.za>
Content
> But I can tell you that I've never had another FTP program fail like
> Python 3 is failing for me trying to what seems like a simple transfer
> of a text file (expecting the line endings to be adjusted).  

Python 3 is not failing, you are just using it the wrong way. Open your
file in binary mode (as opposed to text mode) and it should work. "Text
files" in Python 3 are files decoded to unicode while reading (and
encoded from unicode while writing); they are much more than simply
binary files with adaptive line endings. This is more or less documented
here (although I agree it would perhaps need a better introductory
paragraph):
http://docs.python.org/py3k/library/io.html
History
Date User Action Args
2010-08-27 17:58:06pitrousetrecipients: + pitrou, amaury.forgeotdarc, vstinner, giampaolo.rodola, aymanhs, rdevaughn, danonymous
2010-08-27 17:58:03pitroulinkissue6822 messages
2010-08-27 17:58:02pitroucreate