[issue15209] Re-raising exceptions from an expression
Nick Coghlan
report at bugs.python.org
Thu Jun 28 18:02:12 CEST 2012
Nick Coghlan <ncoghlan at gmail.com> added the comment:
Correction, your try block is overbroad and will suppress errors in the getch implementation. This is better:
try:
_getch = windows_module.getch
except NameError:
_ getch = fallback_module.getch
_getch()
So I'm sticking with my perspective that wanting to do this is a sign of something else being wrong with the exception handling setup.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15209>
_______________________________________
More information about the Python-bugs-list
mailing list