[issue37405] socket.getsockname() returns string instead of tuple

2021-03-23 Thread Brent Gardner
Change by Brent Gardner : -- pull_requests: +23749 pull_request: https://github.com/python/cpython/pull/24991 ___ Python tracker <https://bugs.python.org/issue37

[issue37405] socket.getsockname() returns string instead of tuple

2021-03-23 Thread Brent Gardner
Brent Gardner added the comment: This test was overlooked, and line 2052 should now be removed per the discussion here: https://github.com/python/cpython/pull/14392#issuecomment-506133908 In short, getsockname() used to return `(interface, socket.AF_CAN)`, in which the socket.AF_CAN

[issue37405] socket.getsockname() returns string instead of tuple

2019-06-25 Thread Brent Gardner
Brent Gardner added the comment: Correction, change caused by a30f6d45ac3e72761b96a8df0527182029eaee24 to cpython/Modules/socketmodule.c on Aug 28, 2017. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37405] socket.getsockname() returns string instead of tuple

2019-06-25 Thread Brent Gardner
Brent Gardner added the comment: Changed caused by commit effc12f8e9e20d0951d2ba5883587666bd8218e3 to cpython/Modules/socketmodule.c on Sep 6, 2017. -- components: +Extension Modules ___ Python tracker <https://bugs.python.org/issue37

[issue37405] socket.getsockname() returns string instead of tuple

2019-06-25 Thread Brent Gardner
New submission from Brent Gardner : In Python 3.5.3, a socket with type AF_CAN returns a tuple in the form `(interface, )` from getsockname(). In Python 3.7.3, getsockname() returns a string (the name of the interface). The documentation states "a tuple is used for the AF_CAN ad

[issue37405] socket.getsockname() returns string instead of tuple

2019-06-25 Thread Brent Gardner
Change by Brent Gardner : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue37405> ___ ___ Python-bugs-list mailing list Unsubscrib