# python code:
dosomething = {
'A': dosomethingofA,
'B': dosomethingofB,
None: dosomethingofDefault,
}
dosomething.get(c,dosomething[None])()
# python code:
dosomething = {
'A': dosomethingofA,
'B': dosomethingofB,
None: dosomethingofDefault,
}
dosomething.get(c,dosomething[None])()