[path-PEP] Path inherits from basestring again

phil hunt zen19725 at zen.co.uk
Sat Jul 30 09:12:29 EDT 2005


On Fri, 29 Jul 2005 14:38:23 +1200, Tony Meyer <t-meyer at ihug.co.nz> wrote:
>> def functions_which_modifies_some_file_in_place(path):
>>  output = open(path+'.tmp', 'w')
>>  .....
>> 
>> I dont want a seperator inserted between path and the new extension.
>
>Fair enough.  Forget using '+' for join, then (which I was never that keen
>on - TIOWTDI), but I'm still -1 on using '/' for join.

I agree. It's yuck.

What's wrong with simply having each path-element as an argument to 
a function, e.g.

join(foo, bar, baz)

-- 
Email: zen19725 at zen dot co dot uk





More information about the Python-list mailing list