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 Derek.Kurth
Recipients Derek.Kurth, docs@python
Date 2014-10-07.20:34:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412714078.21.0.80330944433.issue22576@psf.upfronthosting.co.za>
In-reply-to
Content
The Python 3 documentation for ftplib gives the storbinary method signature as:

FTP.storbinary(cmd, file, blocksize=8192, callback=None, rest=None)

However, the parameter named "file" is actually named "fp" in the code, so if you do something like this:

ftp.storbinary(cmd="RETR something.txt", file=f)

then you will get a TypeError: storbinary() got an unexpected keyword argument 'file'.  

I think the documentation should be updated to call that argument "fp" instead of "file."
History
Date User Action Args
2014-10-07 20:34:38Derek.Kurthsetrecipients: + Derek.Kurth, docs@python
2014-10-07 20:34:38Derek.Kurthsetmessageid: <1412714078.21.0.80330944433.issue22576@psf.upfronthosting.co.za>
2014-10-07 20:34:38Derek.Kurthlinkissue22576 messages
2014-10-07 20:34:38Derek.Kurthcreate