A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-April/034330.html below:

[Python-Dev] Minor issue with PyErr_NormalizeException

[Python-Dev] Minor issue with PyErr_NormalizeException [Python-Dev] Minor issue with PyErr_NormalizeExceptionTim Peters tim.one@comcast.net
Tue, 01 Apr 2003 22:03:45 -0500
[Eric Huss]
> We had a bug in one of our extension modules that caused a core dump in
> PyErr_NormalizeException().  At the very top of the function (line 133) it
> checks for a NULL type.  I think it should have a "return" here so that
> the code does not continue and thus dump core on line 153 when it calls
> PyClass_Check(type).  This should also make the comment not lie about
> dumping core. ;)
>
> Just thought I'd pass it on..

I agree the code doesn't make sense, but the comment doesn't either.  I'm in
favor of replacing the guts of the

 	if (type == NULL) {

block with a call to Py_FatalError().




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4