bpo-35545: Fix mishandling of scoped IPv6 addresses by twisteroidambassador · Pull Request #11403 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

High-level APIs such as create_connection() accept (host, port), while
low-level APIs such as sock_connect() accept socket address tuples.
_ensure_resolved() should be used exactly once to turn (host, port)
into an address tuple.

The signature of _ensure_resolved() was changed from (address, *, ...)
to (host, port, *, ...) to enforce this.

eamanu

1st1

1st1 approved these changes Feb 14, 2019

Labels