[New-bugs-announce] [issue11177] Set asyncore create_socket default argument

Giampaolo Rodola' report at bugs.python.org
Thu Feb 10 19:33:44 CET 2011

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

At the current state asyncore implicitly supports TCP (SOCK_STREAM) sockets only, despite UDP support might be added in the future.
For simplicity, create_socket() should assume TCP/IP by default.
This would avoid the user to "import socket" and specify the two constants every time, which is annoying.

files: asyncore_create_socket.patch
keywords: patch
messages: 128327
nosy: giampaolo.rodola
priority: normal
severity: normal
status: open
title: Set asyncore create_socket default argument
versions: Python 3.3
Added file: http://bugs.python.org/file20735/asyncore_create_socket.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list