equivalent of Ruby's Pathname?
greg.ewing at canterbury.ac.nz
Tue Feb 9 07:55:16 CET 2010
Carl Banks wrote:
> I don't remember if the idea of modifying open to accept path
> objects came up.
It wouldn't just be open() that people would want modified --
it would be every other function that takes a pathname as
I seem to recall another point of contention was whether
path objects should have methods for accessing the file
system (opening files, renaming them, etc.) or whether it
should confine itself to representing and manipulating
In any case, introducing any kind of path object at this
late stage of the language's development would result in
More Than One Way to represent pathnames, with neither of
them being the obvious choice.
More information about the Python-list