classification
Title: Set asyncore create_socket default argument
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: giampaolo.rodola Nosy List: giampaolo.rodola, josiah.carlson, pitrou
Priority: normal Keywords: patch

Created on 2011-02-10 18:33 by giampaolo.rodola, last changed 2011-02-25 22:21 by giampaolo.rodola. This issue is now closed.

Files
File name Uploaded Description Edit
asyncore_create_socket.patch giampaolo.rodola, 2011-02-10 18:33
Messages (3)
msg128327 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2011-02-10 18:33
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.
msg128341 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-02-10 21:46
Your "versionchanged" is misleading. It should be something like "family and type can now be omitted".
msg129445 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2011-02-25 22:21
Fixed in r88619.
History
Date User Action Args
2011-02-25 22:21:52giampaolo.rodolasetstatus: open -> closed

nosy: + josiah.carlson
messages: + msg129445

resolution: fixed
2011-02-10 21:46:26pitrousetnosy: + pitrou
messages: + msg128341

components: + Library (Lib)
type: enhancement
stage: patch review
2011-02-10 18:33:52giampaolo.rodolasetassignee: giampaolo.rodola
2011-02-10 18:33:44giampaolo.rodolacreate