We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
assignee = 'https://github.com/giampaolo'
closed_at = <Date 2010-09-08.22:44:48.654>
created_at = <Date 2010-09-07.22:23:47.438>
labels = ['library']
title = 'socket.create_connection context manager'
updated_at = <Date 2010-09-08.22:44:48.653>
user = 'https://github.com/giampaolo'
activity = <Date 2010-09-08.22:44:48.653>
actor = 'giampaolo.rodola'
assignee = 'giampaolo.rodola'
closed = True
closed_date = <Date 2010-09-08.22:44:48.654>
closer = 'giampaolo.rodola'
components = ['Library (Lib)']
creation = <Date 2010-09-07.22:23:47.438>
creator = 'giampaolo.rodola'
dependencies = 
files = ['18789', '18790', '18804']
hgrepos = 
issue_num = 9794
keywords = ['patch']
message_count = 5.0
messages = ['115812', '115814', '115817', '115911', '115912']
nosy_count = 3.0
nosy_names = ['amaury.forgeotdarc', 'pitrou', 'giampaolo.rodola']
pr_nums = 
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue9794'
versions = ['Python 3.2']
The text was updated successfully, but these errors were encountered:
Patch in attachment adds a context manager to socket.socket class so that socket.create_connection() can be used with "with" statement.
Sorry, something went wrong.
You don't need to use socketserver. Take a look at how the other tests in test_socket are written. Inheriting from ThreadedTCPSocketTest should be easy.
It wasn't easy but here it is. =)
I'll submit a patch which updates the doc tomorrow.
Patch which updates doc is in attachment.
Committed in r84639.
No branches or pull requests