[Python-Dev] Pathlib enhancments - method name only (original) (raw)

Brett Cannon brett at python.org
Fri Apr 8 18:23:41 EDT 2016


On Fri, 8 Apr 2016 at 15:21 Chris Barker - NOAA Federal < chris.barker at noaa.gov> wrote:

> On Apr 8, 2016, at 3:00 PM, Eric Snow <ericsnowcurrently at gmail.com> wrote: > >> On Fri, Apr 8, 2016 at 12:25 PM, Brett Cannon <brett at python.org> wrote: >> I personally still like ospath as well. > > Same here. The strings are essentially an OS-dependent serialization, > rather than related to a particular file system.

Huh? I though the strings were a OS-independent, human readable serialization and interchange format.

Depends if you use / or \ as your path separator if they are truly OS-independent. :)

-Brett

Bytes would be the OS-dependent serialization. But yes, I suppose the file-system-level version would be inodes or something. But this is a string that represents a path, thus pathstr. And the term "path" is used all over the place (including os.path and pathlib) for this particular type of path, so I don't see why we need the "fs" or "os", other than the fact that path is already taken. But I'm looking forward to using this bike shed regardless of its color, so that's the last I'll comment on that. -CHB -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160408/daf4fe2c/attachment.html>



More information about the Python-Dev mailing list