Peter Otten wrote: > http://mail.python.org/pipermail/python-list/2010-October/1258606.html
http://mail.python.org/pipermail/python-list/2010-October/1259024.html
I found #6210 on bugs.python.org -- does anyone know if there are any others regarding this issue? Or any progress on MRAB's idea?
MRAB wrote: > Suggestion: an explicit 'raise' in the exception handler excludes the > context, but if you want to include it then 'raise with'. For example: > > # Exclude the context > try: > command_dict[command]() > except KeyError: > raise CommandError("Unknown command") > > # Include the context > try: > command_dict[command]() > except KeyError: > raise with CommandError("Unknown command") ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list