Skip to content

Conversation

@barneygale
Copy link
Contributor

@barneygalebarneygale commented Jun 13, 2021

One of only three pieces of functionality that's available in the
object-oriented pathlib library, but not the traditional os/os.path
modules.

By moving this functionality to low-level modules, we make progress towards
being able to remove pathlib._Flavour in bpo-44136 and ultimately unlock
pathlib's OOPy potential in bpo-24132.

This commit also adjusts urllib.request.pathname2url() to use the new
implementation on Windows. On other platforms, the existing implementation
is retained due to its simplicity and its highly questionable support for
relative file URIs (like 'file:photos/foo.txt')

https://bugs.python.org/issue44412

One of only three pieces of functionality that's available in the object-oriented pathlib library, but not the traditional os/os.path modules. By moving this functionality to low-level modules, we make progress towards being able to remove `pathlib._Flavour` in bpo-44136 and ultimately unlock pathlib's OOPy potential in bpo-24132. This commit also adjusts `urllib.request.pathname2url()` to use the new implementation on Windows. On other platforms, the existing implementation is retained due to its simplicity and its highly questionable support for relative file URIs (like `'file:photos/foo.txt'`)
@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actionsgithub-actionsbot added the stale Stale PR or inactive for long period of time. label Jul 14, 2021
@barneygalebarneygalemannequin mentioned this pull request Jun 21, 2022
@projetmbcprojetmbcmannequin mentioned this pull request Jun 21, 2022
@barneygalebarneygalemannequin mentioned this pull request Apr 10, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviewstaleStale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@barneygale@the-knights-who-say-ni@bedevere-bot