This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author exarkun
Recipients exarkun
Date 2010-10-21.17:22:05
SpamBayes Score 1.036595e-08
Marked as misclassified No
Message-id <1287681728.0.0.651147678785.issue10169@psf.upfronthosting.co.za>
In-reply-to
Content
>>> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
>>> s.bind(('', 0))
>>> s.sendto(u'hellé', s.getsockname())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: sendto() takes exactly 3 arguments (2 given)
>>> s.sendto(3, s.getsockname())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: sendto() takes exactly 3 arguments (2 given)
>>> s.sendto('hello', s.getsockname())
5

The TypeError gives the wrong explanation for what's wrong.
History
Date User Action Args
2010-10-21 17:22:08exarkunsetrecipients: + exarkun
2010-10-21 17:22:08exarkunsetmessageid: <1287681728.0.0.651147678785.issue10169@psf.upfronthosting.co.za>
2010-10-21 17:22:06exarkunlinkissue10169 messages
2010-10-21 17:22:05exarkuncreate