def test_dict_based_no_default():
        "ordinary-dict-based switch, no default case support"
        switch = DictBasedSwitch.switch
        x = ''
        for key in case_keys:
            x = switch[key](x[:10])
ordinary-dict-based switch, no default case support
recipes/Python/577864_Fast_elegant_switchcaselike/recipe-577864.py