os.path.join and lists
Steven D. Majewski
sdm7g at Virginia.EDU
Wed Oct 17 18:36:17 EDT 2001
On 17 Oct 2001, Uwe Schmitt wrote:
> Fredrik Lundh <fredrik at pythonware.com> wrote:
>
> | how about
>
> | bar = [ "fred", "barney", "froo" ]
> | baz = bar + [ "bob" ]
> | foo = os.path.join(*baz)
>
> hi, whats the meaning of "*baz" ?? i've never seen this before....
[1] Another way of spelling 'apply' since 2.0.
[2] The inverse of "def spam( *args ):"
See section 9.1 of "What's new in python 2.0" :
<http://www.amk.ca/python/2.0/#SECTION0001010000000000000000>
-- Steve Majewski
More information about the Python-list
mailing list