[New-bugs-announce] [issue38952] asyncio cannot handle Python3 IPv4Address or IPv6 Address

Max Coplan report at bugs.python.org
Sun Dec 1 20:07:46 EST 2019


New submission from Max Coplan <mchcopl at gmail.com>:

Trying to use new Python 3 `IPv4Address`s fails with the following error
```
File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 1270, in _ensure_resolved
    info = _ipaddr_info(host, port, family, type, proto, *address[2:])
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 134, in _ipaddr_info
    if '%' in host:
TypeError: argument of type 'IPv4Address' is not iterable
```

----------
components: asyncio
messages: 357697
nosy: Max Coplan, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: asyncio cannot handle Python3 IPv4Address or IPv6 Address
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38952>
_______________________________________


More information about the New-bugs-announce mailing list