PyWart: os.path needs immediate attention!
Terry Reedy
tjreedy at udel.edu
Fri Jul 29 19:30:55 EDT 2011
On 7/29/2011 1:22 PM, rantingrick wrote:
> * Introduce a new method named "partition" which (along with string
> splitting methods) will replace the six methods "basename", "dirname",
> "split", "splitdrive", "splitunc", "splittext". The method will return
> a tuple of the path split into four parts: (drive, path, filename,
> extension).
A named tuple would be an even better return, so one could refer to the
parts as t.drive, etc.
More information about the Python-list
mailing list