Nested os.path.join()'s

Paul Scott pscott at uwc.ac.za
Mon May 5 10:36:27 EDT 2008


On Mon, 2008-05-05 at 10:34 -0400, Jean-Paul Calderone wrote:
> How about not nesting the calls?
> 
>     >>> from os.path import join
>     >>> join(join('x', 'y'), 'z') == join('x', 'y', 'z')
>     True
>     >>>
> 

Great! Thanks. Didn't realise that you could do that... :)

--Paul

-------------- next part --------------
All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 


More information about the Python-list mailing list