Message228773
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." |
|
Date |
User |
Action |
Args |
2014-10-07 20:34:38 | Derek.Kurth | set | recipients:
+ Derek.Kurth, docs@python |
2014-10-07 20:34:38 | Derek.Kurth | set | messageid: <1412714078.21.0.80330944433.issue22576@psf.upfronthosting.co.za> |
2014-10-07 20:34:38 | Derek.Kurth | link | issue22576 messages |
2014-10-07 20:34:38 | Derek.Kurth | create | |
|