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 -- http://mail.python.org/mailman/listinfo/python-list