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
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
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
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