-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Make Path subscriptable #139270
Copy link
Copy link
Closed as not planned
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlibtype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlibtype-featureA feature request or enhancementA feature request or enhancement
Feature or enhancement
Proposal:
Pathshould be subscriptable so I can select components, e.g.(This is a more convenient alternative to
.parts, which returns a tuple of strings I have to reassemble into a path.)Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response