-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Add context manager support to xmlrpc.client.ServerProxy #64826
Comments
Otherwise have to call client('close')() to close a server proxy and that's just ugly. |
Hi. Here's a simple patch for this. |
Thanks for the patch, Cladiu! Since the 3.5 branch is not open yet it might not be until late March or April when I can look at this patch and get it committed, but I will get to it. |
Thanks for the patch, Claudiu.Popa! I noticed one tiny thing, which is that it introduced some trailing whitespace. I've uploaded a trivial change to your patch that removes the whitespace.
=> needs review |
Cool, thanks, Jessica! |
Looks good to me; left some comments on Rietveld. |
Thanks for the review, Éric! I uploaded a new version of the patch, which addresses your comments. |
Patch updated with fixes suggested by Éric. |
This looks ready to me. Thanks Claudiu! |
My pleasure. Thanks for the reviews, too! |
Now that the 3.5 branch is the default, can this feature be committed? |
Yes it can. I do my Python work typically on Fridays so I will get to it then. |
New changeset 395904f70d6a by Brett Cannon in branch 'default': |
Thanks for the patch! |
My pleasure! |
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: