Message310034
In 3.6, trying to connect to a AF_UNIX socket using a pathlib.Path object doesn't work:
Python 3.6.4 (default, Dec 27 2017, 13:02:49)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket, pathlib
>>> s = socket.socket(family=socket.AF_UNIX)
>>> s.connect(pathlib.Path("asdf"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: a bytes-like object is required, not 'PosixPath'
It would be good to fix this to use the fspath protocol. |
|
Date |
User |
Action |
Args |
2018-01-16 02:23:17 | njs | set | recipients:
+ njs, brett.cannon |
2018-01-16 02:23:17 | njs | set | messageid: <1516069397.77.0.467229070634.issue32562@psf.upfronthosting.co.za> |
2018-01-16 02:23:17 | njs | link | issue32562 messages |
2018-01-16 02:23:16 | njs | create | |
|