[issue32224] socket.create_connection needs to support full IPv6 argument

2017-12-06 Thread Matthew Stoltenberg

Matthew Stoltenberg <d3m...@gmail.com> added the comment:

The naive change is to have the host, port tuple assignment use only the first 
two values from address. I can open a PR with that change (and update the 
docstring for the function) if that's the right change. For reference, the 
python socketpair implementation (if _socket is missing it) ignores flow_info 
and scope_id, but I'm not sure that's the right thing to do.

--

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



[issue32224] socket.create_connection needs to support full IPv6 argument

2017-12-05 Thread Matthew Stoltenberg

Change by Matthew Stoltenberg <d3m...@gmail.com>:


--
title: socket.creaet_connection needs to support full IPv6 argument -> 
socket.create_connection needs to support full IPv6 argument

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



[issue32224] socket.creaet_connection needs to support full IPv6 argument

2017-12-05 Thread Matthew Stoltenberg

New submission from Matthew Stoltenberg <d3m...@gmail.com>:

The following causes a ValueError in the create_connection convenience function

import socket

sock1 = socket.create_connection(('::1', '80'))
sock2 = socket.create_connection(sock1.getpeername())

--
components: Library (Lib)
messages: 307674
nosy: Matthew Stoltenberg
priority: normal
severity: normal
status: open
title: socket.creaet_connection needs to support full IPv6 argument
type: behavior
versions: Python 3.4, Python 3.6

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