New issue 3121: pathlib.Path objects are not accepted by os.chdir https://bitbucket.org/pypy/pypy/issues/3121/pathlibpath-objects-are-not-accepted-by
Carmen Bianca Bakker: Piece of code for demonstration: ``` $ pypy3 Python 3.6.1 (6f7180acecf3, Jul 27 2019, 12:44:44) [PyPy 7.1.1-beta0 with GCC 9.1.1 20190605 (Red Hat 9.1.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information. >>>> import os >>>> import pathlib >>>> os.chdir(pathlib.Path(".")) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'PosixPath' does not support the buffer interface ``` I’ve tried a couple other functions in `os` and `os.path`, but they all seem to work just fine with `pathlib.Path` objects. I’ve tried: * `os.path.join` * `os.fspath` * `os.path.commonpath` * `os.path.dirname` * `os.path.isdir` Running PyPy 3 provided by Fedora 31. _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue