an apply question

Darren New dnew at san.rr.com
Tue Dec 5 19:44:33 EST 2000


And in addition to all the other advice, you've defined func1 but you're
trying to call func3. You either need to define func3 or change "if
key=="Key3"" to "if key=="Key1"". :-)

> def func1 ( ):
>     print "Here's func1"
> 
>     if key == "Key3":
>         apply( func, ( ) )

-- 
Darren New / Senior MTS & Free Radical / Invisible Worlds Inc.
San Diego, CA, USA (PST).  Cryptokeys on demand.
There is no "P" on the end of "Winnie the Pooh."



More information about the Python-list mailing list