New submission from chrysn: The bz2.open function accepts a file name; after PEP 519 (file system path protocol) it "is expected that most APIs in Python's standard library that currently accept a file system path will be updated appropriately to accept path objects".
BZ2File explicitly checks for types (bz2.py:94-97), so it will need explicit adaption. ---------- messages: 277357 nosy: chrysn priority: normal severity: normal status: open title: bz2.open does not use __fspath__ (PEP 519) type: behavior versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28268> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com