Using an interable in place of *args?

Nick Vargish nav+posts at bandersnatch.org
Fri Nov 21 13:37:40 EST 2003


Thanks for all the replies -- I think what I want is the *arg
idiom. Amazing that I hadn't encountered it until now!

Over my lunch break I realized that I could do what I wanted with
apply(struct.pack, tuple), but the *arg thing is much tidier.

Thanks again,

Nick

-- 
#  sigmask  ||  0.2  ||  20030107  ||  public domain  ||  feed this to a python
print reduce(lambda x,y:x+chr(ord(y)-1),' Ojdl!Wbshjti!=obwAcboefstobudi/psh?')




More information about the Python-list mailing list