[Patches] [Patch #102599] better errors for getsockaddrarg
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 1 Dec 2000 05:14:05 -0800
Patch #102599 has been updated.
Project: python
Category: Modules
Status: Closed
Submitted by: mwh
Assigned to : Nobody
Summary: better errors for getsockaddrarg
Follow-Ups:
Date: 2000-Dec-01 03:18
By: mwh
Comment:
This patch attempts to provide a better error message for
>>> import socket
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> s.connect('localhost:234')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: 2-sequence, 13-sequence
>>>
It now goes:
>>> import socket
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> s.connect('localhost:234')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: getsockaddrarg: AF_INET address must be tuple, not string
-------------------------------------------------------
Date: 2000-Dec-01 05:14
By: gvanrossum
Comment:
Thanks, applied.
-------------------------------------------------------
-------------------------------------------------------
For more info, visit:
http://sourceforge.net/patch/?func=detailpatch&patch_id=102599&group_id=5470