[path-PEP] Path inherits from basestring again
Peter Hansen
peter at engcorp.com
Sun Jul 24 13:36:31 EDT 2005
Reinhold Birkenfeld wrote:
> Peter Hansen wrote:
>> if mypath.splitpath()[0] == 'c:/temp':
vs.
>> if mypath.splitpath()[0] == Path('c:/temp'):
>
> But you must admit that that't the cleaner solution.
"Cleaner"? Not at all. I'd say it's the more expressive solution,
perhaps, but I definitely wouldn't choose the word "cleaner" for
something which, to me, adds fairly unnecessary text.
But it's clearly a subjective matter, and as the one of us not involved
in doing the real work here, I'll bow to your judgement on the matter. ;-)
-Peter
More information about the Python-list
mailing list