This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: DegenerateFiles.Path mismatch to Traversable interface
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.10
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, eric.snow, jaraco, miss-islington, ncoghlan
Priority: low Keywords: patch

Created on 2021-10-10 00:38 by jaraco, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 28844 merged jaraco, 2021-10-10 00:57
Messages (2)
msg403564 - (view) Author: Jason R. Coombs (jaraco) * (Python committer) Date: 2021-10-10 00:38
In [pytest-dev/pytest#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.
msg403589 - (view) Author: miss-islington (miss-islington) Date: 2021-10-10 14:23
New changeset 14a483aa400dda8346ac474ce22e2ba8d8126dff by Jason R. Coombs in branch '3.10':
[3.10] bpo-45419: Fix interfaces on DegenerateFiles.Path (GH-28844)
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89582
2021-10-10 14:24:01jaracosetstatus: open -> closed
type: behavior ->
resolution: fixed
stage: patch review -> resolved
2021-10-10 14:23:16miss-islingtonsetnosy: + miss-islington
messages: + msg403589
2021-10-10 10:32:15serhiy.storchakasetversions: - Python 3.11
2021-10-10 10:30:30serhiy.storchakasetnosy: + brett.cannon, ncoghlan, eric.snow

type: behavior
components: + Library (Lib)
versions: + Python 3.11
2021-10-10 00:57:29jaracosetkeywords: + patch
stage: patch review
pull_requests: + pull_request27156
2021-10-10 00:38:04jaracocreate