[New-bugs-announce] [issue44196] Document that importlib.abc.Traversable's methods should raise FileNotFoundError
Filipe Laíns
report at bugs.python.org
Thu May 20 15:42:10 EDT 2021
New submission from Filipe Laíns <lains at riseup.net>:
ResourceReader used to have this requirement, Traversable does not. We cannot add a requirement as there might be users not doing this, but we can ask new users to do so.
We should document that FileNotFoundError should be raised if a file is not found, but that it is not guaranteed that it will for all Traversable implementations for compatibility reasons.
----------
assignee: docs at python
components: Documentation
messages: 394055
nosy: FFY00, brett.cannon, docs at python, jaraco
priority: normal
severity: normal
status: open
title: Document that importlib.abc.Traversable's methods should raise FileNotFoundError
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44196>
_______________________________________
More information about the New-bugs-announce
mailing list