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 vitaly.krug
Recipients paul.moore, steve.dower, tim.golden, vitaly.krug, zach.ware
Date 2018-04-02.17:18:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522689483.28.0.467229070634.issue33206@psf.upfronthosting.co.za>
In-reply-to
Content
I am seeing this with `socket.AF_INET6` on Windows running python 2.7.14
```
[00:02:33]   File "C:\projects\pika\pika\adapters\host_tcp_connector.py", line 153, in _check_already_resolved
[00:02:33]     socket.inet_pton(socket.AF_INET6, 'localhost')
[00:02:33]   File "C:\Python27\lib\site-packages\twisted\python\compat.py", line 68, in inet_pton
[00:02:33]     raise ValueError("Illegal characters: %r" % (''.join(x),))
[00:02:33] ValueError: Illegal characters: 't'
```

With `socket.AF_INET`, `socket.inet_pton(socket.AF_INET, 'localhost')` raises `socket.error` as expected.

For comparison, with Python 2.7.10 running on OS X, both AF_INET and AF_INET6 raise `socket.error`.
History
Date User Action Args
2018-04-02 17:18:03vitaly.krugsetrecipients: + vitaly.krug, paul.moore, tim.golden, zach.ware, steve.dower
2018-04-02 17:18:03vitaly.krugsetmessageid: <1522689483.28.0.467229070634.issue33206@psf.upfronthosting.co.za>
2018-04-02 17:18:03vitaly.kruglinkissue33206 messages
2018-04-02 17:18:03vitaly.krugcreate