[pypy-issue] Issue #3168: PyUnicode_FSConverter() doesn't handle os.PathLike (pypy/pypy)

Christoph Reiter issues-reply at bitbucket.org
Sat Feb 8 09:10:39 EST 2020


New issue 3168: PyUnicode_FSConverter() doesn't handle os.PathLike
https://bitbucket.org/pypy/pypy/issues/3168/pyunicode_fsconverter-doesnt-handle

Christoph Reiter:

[https://docs.python.org/3/c-api/unicode.html#c.PyUnicode\_FSConverter](https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_FSConverter)

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

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

‌

‌




More information about the pypy-issue mailing list