os.path.join and lists

Oleg Broytmann phd at phd.pp.ru
Wed Oct 17 21:23:21 CEST 2001


On Wed, Oct 17, 2001 at 07:01:20PM +0100, Dave Swegen wrote:
> foo = os.path.join(bar[1:2], "bob")

foo = os.path.join(bar[1:2] + ["bob"]) # untested

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list