[Python-ideas] Re: Adding PathLiteral class and existing object instance to pathlib

2021-02-15 Thread mwmajewsk
You are right, it would not, I incorrectly assumed that since Path() actually evaluates to PosixPath('.') then Path()/'tmp' evaluates to PosixPath('./tmp') but it does not. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an

[Python-ideas] Re: Adding PathLiteral class and existing object instance to pathlib

2021-02-15 Thread Christopher Barker
On Mon, Feb 15, 2021 at 5:21 PM Paul Bryan wrote: > I wonder how that is substantially different than: > > or perhaps more verbosely, but arguably more readable: > > from pathlib import Path > > Path() / "foo" > > or from pathlib import Path Path("foo") I guess I don't find the proposal or va

[Python-ideas] Re: Adding PathLiteral class and existing object instance to pathlib

2021-02-15 Thread Paul Bryan
I wonder how that is substantially different than: from pathlib import Path as p p() / "foo" or perhaps more verbosely, but arguably more readable: from pathlib import Path Path() / "foo" Paul On Tue, 2021-02-16 at 01:07 +, mwmajewsk wrote: > P.S. the code snippet I mentioned is not rende

[Python-ideas] Re: Adding PathLiteral class and existing object instance to pathlib

2021-02-15 Thread mwmajewsk
P.S. the code snippet I mentioned is not rendering with mailman archives, here it is again; from pathlib import path_literal as p p/"foo" the result is: PosixPath('foo') ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an em