[issue38952] asyncio cannot handle Python3 IPv4Address or IPv6 Address

2019-12-01 Thread Max Coplan


New submission from Max Coplan :

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 
<https://bugs.python.org/issue38952>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38952] asyncio cannot handle Python3 IPv4Address or IPv6 Address

2019-12-01 Thread Max Coplan


Change by Max Coplan :


--
keywords: +patch
pull_requests: +16913
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17434

___
Python tracker 
<https://bugs.python.org/issue38952>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38952] asyncio cannot handle Python3 IPv4Address

2019-12-01 Thread Max Coplan


Change by Max Coplan :


--
title: asyncio cannot handle Python3 IPv4Address or IPv6 Address -> asyncio 
cannot handle Python3 IPv4Address

___
Python tracker 
<https://bugs.python.org/issue38952>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38952] asyncio cannot handle Python3 IPv4Address

2019-12-02 Thread Max Coplan

Max Coplan  added the comment:

Well I’ve submitted a fix for it.  It isn’t perfect.  Well, while it doesn’t 
look perfect, it actually worked with everything I’ve thrown at it, and seems 
to be a very robust and sufficient fix.

--

___
Python tracker 
<https://bugs.python.org/issue38952>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com