PyWart: os.path needs immediate attention!
tlikonen at iki.fi
Fri Jul 29 22:07:05 CEST 2011
* 2011-07-29T10:22:04-07:00 * <rantingrick at gmail.com> wrote:
> * New path module will ONLY support one path sep! There is NO reason
> to support more than one.
Pathnames and the separator for pathname components should be abstracted
away, to a pathname object. This pathname object could have a "path" or
"directory" slot which is a list of directory components (strings). Then
there would be method like "to_namestring" which converts a pathname
object to native pathname string. It takes care of any platform-specific
stuff like pathname component separators. Of course "to_pathname" method
is needed too. It converts system's native pathname string to a pathname
More information about the Python-list