[path-PEP] Path inherits from basestring again
peter at engcorp.com
Sun Jul 24 19:36:31 CEST 2005
Reinhold Birkenfeld wrote:
> Peter Hansen wrote:
>> if mypath.splitpath() == 'c:/temp':
>> if mypath.splitpath() == 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. ;-)
More information about the Python-list