newbie apply() question

Aaron Edsinger edsinger at ai.mit.edu
Tue Jul 3 00:37:54 EDT 2001


hi.  i'm stumped on something that seems easy.  why doesn't this work:

x=4
apply(sys.stdout.write,x) #fails
apply(sys.stdout.write,(x,)) #fails

is there a way to make this work?

thanks,
    aaron







More information about the Python-list mailing list