-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ftplib storbinary/storlines callback function #42089
Comments
The ftplib.FTP class currently allows the ability to My ReleaseForge application currently uses the ftplib However, I think this would be a useful method to |
Logged In: YES Please provide your patch as a diff between the original |
Logged In: YES Attached patch of ftplib.py (of Python 2.4.3) |
I'd like to voice some support for this patch, if that's not out of line. I've used it myself in at least one app, and it would be nice to have it as a standard feature in 2.6. It seems odd that the callback feature is in the two retrieval methods, but not the store methods. Ruby, for example, supports it in both. Not that Python has to do everything Ruby does, but there doesn't seem to be any obstacle to adding this support. |
Terry, your comment is definitely *not* out of line! The more people comment on patches the easier it is for us to make a decision. It would be great to comment on other patches or bugs that affect you. Thanks. |
accepted, committed as svn r60188 for 2.6. I also cleaned up the retr* |
Could I propose the following docstring corrections? @@ -313,7 +313,7 @@
expected size may be None if it could not be determined.
Optional `rest' argument can be a string that is sent as the
- argument to a RESTART command. This is essentially a server
+ argument to a REST(art) command. This is essentially a server
marker used to tell the server to skip over any data up to the
given marker.
"""
@@ -403,7 +403,7 @@
"""Retrieve data in line mode. A new port is created for you.
Args:
- cmd: A RETR or LIST command.
+ cmd: A RETR, LIST, NLST or MLSD command.
callback: An optional single parameter callable that is called
for each line with the trailing CRLF stripped.
[default: print_line()] |
thanks. applied (well, they will be when svn.python.org comes back) On 1/22/08, Giampaolo Rodola' <report@bugs.python.org> wrote:
|
Another one. On line 542:
+ # SIZE command is defined in RFC-3659 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: