[issue9794] socket.create_connection context manager

Giampaolo Rodola' report at bugs.python.org
Wed Sep 8 00:23:56 CEST 2010

New submission from Giampaolo Rodola' <g.rodola at gmail.com>:

Patch in attachment adds a context manager to socket.socket class so that  socket.create_connection() can be used with "with" statement.

components: Library (Lib)
files: socket_ctx_mgr.patch
keywords: patch
messages: 115812
nosy: amaury.forgeotdarc, giampaolo.rodola, pitrou
priority: normal
severity: normal
status: open
title: socket.create_connection context manager
versions: Python 3.2
Added file: http://bugs.python.org/file18789/socket_ctx_mgr.patch

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list