Terry> Yeah, and I find this even more so:
Terry> case = {
Terry> 5: do_this,
Terry> 6: do_that,
Terry> }
Terry> case.get(x, do_default)()
Terry> Which is looking pretty close to a case statement, anyway.
Sure, modulo namespace issues.
Skip
--
http://mail.python.org/mailman/listinfo/python-list
