[New-bugs-announce] [issue44196] Document that importlib.abc.Traversable's methods should raise FileNotFoundError
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
nosy: FFY00, brett.cannon, docs at python, jaraco
title: Document that importlib.abc.Traversable's methods should raise FileNotFoundError
versions: Python 3.10
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce