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 serhiy.storchaka
Recipients jdemeyer, nnorwitz, serhiy.storchaka
Date 2016-03-03.16:11:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457021502.91.0.553127142575.issue26476@psf.upfronthosting.co.za>
In-reply-to
Content
OK, now I understand. Since _PyErr_BadInternalCall() is private function, we will not break any code. Since it is used only by the PyErr_BadInternalCall() macro and always called with string literal as an argument, C++ user can't use PyErr_BadInternalCall() (without a trick described below). Thus the patch fixes a bug. Thank you Jeroen.

The workaround for unpatched Python 2.7 is to undefine the PyErr_BadInternalCall() macro.

    #undef PyErr_BadInternalCall

There is the PyErr_BadInternalCall() function hidden by the macro. It provides less detailed error message, without file name and line number.
History
Date User Action Args
2016-03-03 16:11:42serhiy.storchakasetrecipients: + serhiy.storchaka, nnorwitz, jdemeyer
2016-03-03 16:11:42serhiy.storchakasetmessageid: <1457021502.91.0.553127142575.issue26476@psf.upfronthosting.co.za>
2016-03-03 16:11:42serhiy.storchakalinkissue26476 messages
2016-03-03 16:11:42serhiy.storchakacreate