[New-bugs-announce] [issue45419] DegenerateFiles.Path mismatch to Traversable interface
Jason R. Coombs
report at bugs.python.org
Sat Oct 9 20:38:04 EDT 2021
New submission from Jason R. Coombs <jaraco at jaraco.com>:
In [pytest-dev/pytest#9174](https://github.com/pytest-dev/pytest/issues/9174), it became clear that the DegenerateFiles object has a couple of interface mismatches to Traversable:
- name is a property
- open accepts a 'mode' and arbitrary args and kwargs.
Because DegenerateFiles is an intentionally broken handle (when a resource provider is unavailable), there's little harm in the interface being broken, and the interface is already gone in Python 3.11, so the urgency of fixing this is small.
----------
messages: 403564
nosy: jaraco
priority: low
severity: normal
status: open
title: DegenerateFiles.Path mismatch to Traversable interface
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45419>
_______________________________________
More information about the New-bugs-announce
mailing list