[Edu-sig] Python First: Free access for educators

w chun wescpy at gmail.com
Wed Mar 8 19:10:36 CET 2006


> def switch(choice, functions = [cf0, cf1, cf2, cf3])


should we really be showing folks using a mutable object as a default
argument? ;-)

i'd suggest: (1) changing it to a tuple, or (2) None and figure it out
after that.

cheers,
-wesley


More information about the Edu-sig mailing list