[issue28268] bz2.open does not use __fspath__ (PEP 519)
chrysn
report at bugs.python.org
Sun Sep 25 06:33:05 EDT 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue28268>
_______________________________________
More information about the Python-bugs-list
mailing list