This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients Arfrever, Tyler.Crompton, ethan.furman, ncoghlan
Date 2012-06-28.15:59:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340899175.26.0.0278419216435.issue15209@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2012-06-28 15:59:35ncoghlansetrecipients: + ncoghlan, Arfrever, ethan.furman, Tyler.Crompton
2012-06-28 15:59:35ncoghlansetmessageid: <1340899175.26.0.0278419216435.issue15209@psf.upfronthosting.co.za>
2012-06-28 15:59:34ncoghlanlinkissue15209 messages
2012-06-28 15:59:34ncoghlancreate