Message164269
| Author |
ncoghlan |
| Recipients |
Arfrever, Tyler.Crompton, ethan.furman, ncoghlan |
| Date |
2012年06月28日.16:02:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1340899332.63.0.332558967214.issue15209@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年06月28日 16:02:12 | ncoghlan | set | recipients:
+ ncoghlan, Arfrever, ethan.furman, Tyler.Crompton |
| 2012年06月28日 16:02:12 | ncoghlan | set | messageid: <1340899332.63.0.332558967214.issue15209@psf.upfronthosting.co.za> |
| 2012年06月28日 16:02:12 | ncoghlan | link | issue15209 messages |
| 2012年06月28日 16:02:11 | ncoghlan | create |
|