Nick Coghlan <ncogh...@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 <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

Reply via email to