Peter Hansen wrote: > 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. ;-)
I'm in no way the last instance on this. For example, everyone with CVS access is free to change the files ;) Honestly, I'm in constant fear that allowing too much and loading too much features won't increase the acceptance of python-dev <wink> Reinhold -- http://mail.python.org/mailman/listinfo/python-list