The files() API completely supersedes the earlier APIs through a simpler and more intuitive interface. In order to achieve "one and preferably only one" interface for the same behavior, it's desirable to remove the legacy API.
In GitLab by @jaraco on Feb 22, 2020, 09:33
Following from !76 and this comment, I'd like to explore what the implementation would look like with only the traversable API. In that comment, I wrote:
I've started stripping out [the legacy] functionality in the feature/drop-legacy-api branch. Progress was good, but I got stumped on Traversable.open() for zip files, which doesn't support text-decoding. This leads me to believe that's a feature zipp should support. This also suggests the Traversable API should include .open().
Plan
The
files()API completely supersedes the earlier APIs through a simpler and more intuitive interface. In order to achieve "one and preferably only one" interface for the same behavior, it's desirable to remove the legacy API.In GitLab by @jaraco on Feb 22, 2020, 09:33
Following from !76 and this comment, I'd like to explore what the implementation would look like with only the traversable API. In that comment, I wrote:
Plan
files. Tests still pass. (Replace legacy API implementation with files() #221)filesAPI is covered entirely by tests not using legacy API. (Replace tests of legacy API with comparable tests of traversable API. #239)3.103.11.3.113.13+. (gh-106531: Remove importlib.resources._legacy cpython#106532)