[Python-Dev] Maybe, just maybe, pathlib doesn't belong.
Donald Stufft
donald at stufft.io
Tue Apr 12 10:58:11 EDT 2016
More information about the Python-Dev mailing list
Tue Apr 12 10:58:11 EDT 2016
- Previous message (by thread): [Python-Dev] Maybe, just maybe, pathlib doesn't belong.
- Next message (by thread): [Python-Dev] Maybe, just maybe, pathlib doesn't belong.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> On Apr 12, 2016, at 10:52 AM, Sven R. Kunze <srkunze at mail.de> wrote: > > Path(...).open() is your friend then. I don't see why you need os.open. > > Refusing to upgrade it like saying, everything was better in the old days. So let's use os.open instead of Path(...).open(). I think it was a mistake to have Path(…).open to be honest and I think the main reason it exists is because open(Path(…)) doesn’t work (yet!). You can’t hang every single thing you might ever want to do to a Path off the path object. ----------------- Donald Stufft PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 842 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://mail.python.org/pipermail/python-dev/attachments/20160412/80f5496e/attachment.sig>
- Previous message (by thread): [Python-Dev] Maybe, just maybe, pathlib doesn't belong.
- Next message (by thread): [Python-Dev] Maybe, just maybe, pathlib doesn't belong.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list