cpython
cpython copied to clipboard
socket.bind(Path(...)) does not work
s = socket(AF_UNIX, SOCK_DGRAM)
s.bind(Path('/tmp/qwe3333'))
gives:
TypeError: a bytes-like object is required, not 'PosixPath'
According to some PEP all path-related functions should accept Path.