PyUnicode_FSConverter()/PyUnicode_FSDecoder() don't handle os.PathLike

Create issue
Issue #3168 new
Christoph Reiter created an issue

https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_FSConverter

https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_FSDecoder

When passing an object providing an __fspath__ method PyPy3 will raise:

TypeError: Can't convert '_PathLike' object to str implicitly

Comments (1)

  1. Log in to comment