Nick Coghlan <ncogh...@gmail.com> added the comment: If you don't want the exception context set *at all*, just use a pass statement to get out of the exception before trying the fallback.
try: return windows_module.getch() except NameError: pass # No exception chaining fallback_module.getch() ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15209> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com