PEP on path module for standard library

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Sat Jul 30 13:44:55 EDT 2005


Peter Hansen wrote:
> 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.

Hm. It was suggested on python-dev and among my first modifications. I didn't
see objections till now, but as you're saying, parent is probably better.

Reinhold



More information about the Python-list mailing list