PEP on path module for standard library

Peter Hansen peter at engcorp.com
Sat Jul 30 13:28:08 EDT 2005


Reinhold Birkenfeld wrote:
> Mike Orr wrote:
>>- I saw in a thread that .name and .parent were removed.  I use them
>>very frequently, along with .ext and .namebase.  I don't want to call
>>methods for these.
> 
> They are now named .basename and .directory.

Reinhold, is ".parent" now ".directory"?  Does that still make sense 
when the Path contains a directory and not a file name?  It seems to me 
more general to have .parent in there where it makes sense for both cases.

-Peter



More information about the Python-list mailing list