[issue44842] String conversion of Path removes '/' from original url

2021-08-05 Thread Manish Satwani


New submission from Manish Satwani :

import pathlib
p = pathlib.Path('adl://myblob.azuredatalakestore.net/local/abc/xyz')
s = str(p)
print(s)
what you expect s to be??
There is a bug in path.Path.str(conversion to string) and it remove a slash
s is 'adl:/myblob.azuredatalakestore.net/local/abc/xyz' <-- this is getting 
printplz fix it

--
components: Library (Lib)
messages: 399008
nosy: manish.satwani
priority: normal
severity: normal
status: open
title: String conversion of Path removes '/' from original url
type: behavior
versions: Python 3.6

___
Python tracker 
<https://bugs.python.org/issue44842>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44842] String conversion of Path removes '/' from original url

2021-08-05 Thread Manish Satwani


Manish Satwani  added the comment:

import pathlib
p = pathlib.Path('adl://myblob.azuredatalakestore.net/local/abc/xyz')
s = str(p)
print(s)
what you expect s to be??
There is a bug in path.Path.str(conversion to string) and it remove a slash
s is 'adl:/myblob.azuredatalakestore.net/local/abc/xyz' <-- this is getting 
printplz fix it

--

___
Python tracker 
<https://bugs.python.org/issue44842>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44842] String conversion of Path removes '/' from original url

2021-08-05 Thread Manish Satwani


Manish Satwani  added the comment:

Thanks for the update Eric, if it is not designed to support URI it should tell 
to the user. It is very wired it just returns wrong data.

You can detect it very well if user has specified URI or not.

--

___
Python tracker 
<https://bugs.python.org/issue44842>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com