[New-bugs-announce] [issue22576] ftplib documentation gives a wrong argument name for storbinary
Derek Kurth
report at bugs.python.org
Tue Oct 7 22:34:38 CEST 2014
New submission from Derek Kurth:
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."
----------
assignee: docs at python
components: Documentation
messages: 228773
nosy: Derek.Kurth, docs at python
priority: normal
severity: normal
status: open
title: ftplib documentation gives a wrong argument name for storbinary
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22576>
_______________________________________
More information about the New-bugs-announce
mailing list