switch

Kee Nethery kee at kagi.com
Wed Dec 9 00:02:44 EST 2009


I string together a bunch of elif statements to simulate a switch

if foo == True:
	blah
elif bar == True:
	blah blah
elif bar == False:
	blarg
elif ....




More information about the Python-list mailing list