classification
Title: Add pathlib.PurePath.as_uri()
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.9
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: barneygale, corona10, pablogsal, pitrou, xtreak
Priority: normal Keywords:

Created on 2020-04-14 13:13 by pitrou, last changed 2020-04-17 10:45 by pitrou. This issue is now closed.

Messages (4)
msg366384 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2020-04-14 13:13
"file" scheme URIs are normalized:
https://tools.ietf.org/html/rfc8089

Therefore it would be possible to provide a PurePath method that returns a "file" scheme URI corresponding to the given path.
msg366389 - (view) Author: Dong-hee Na (corona10) * (Python committer) Date: 2020-04-14 14:24
+1 to add this :)
msg366651 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2020-04-17 09:56
Is this different from https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.as_uri
msg366653 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2020-04-17 10:45
Hmm, it looks like I lost my head from 10 years ago :-S

Sorry for the noise, everyone.
History
Date User Action Args
2020-04-17 10:45:51pitrousetstatus: open -> closed
resolution: works for me
messages: + msg366653

stage: resolved
2020-04-17 09:56:23xtreaksetnosy: + xtreak
messages: + msg366651
2020-04-17 03:26:16pablogsalsetnosy: + pablogsal
2020-04-14 14:24:49corona10setnosy: + corona10
messages: + msg366389
2020-04-14 13:13:42pitrousetnosy: + barneygale
2020-04-14 13:13:01pitroucreate