[issue44202] Add errors argument to importlib.abc.Traversable.read_text

2021-05-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: It would be straightforward to add that parameter to `read_text` but I'm uncertain if it will be needed. Since a Traversable already provides an open method which _does_ explicitly pass through keyword arguments to the underlying opener, perhaps it would be

[issue44202] Add errors argument to importlib.abc.Traversable.read_text

2021-05-20 Thread Filipe Laíns
Filipe Laíns added the comment: I am gonna wait until/if GH-26272 (#44196) gets merged to submit a PR because it will conflict with that. -- components: +Library (Lib) versions: +Python 3.11 ___ Python tracker _

[issue44202] Add errors argument to importlib.abc.Traversable.read_text

2021-05-20 Thread Filipe Laíns
New submission from Filipe Laíns : errors should be supported by Traversable.open and is currently supported in importlib.resources.open_text, but Traversable.read_text cannot do it, making it an unsuitable replacement for open_text. -- messages: 394088 nosy: FFY00, brett.cannon, jarac