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/2006-August/067923.html below:

[Python-Dev] segmentation fault in Python 2.5b3 (trunk:51066)

[Python-Dev] segmentation fault in Python 2.5b3 (trunk:51066) [Python-Dev] segmentation fault in Python 2.5b3 (trunk:51066)Thomas Heller theller at python.net
Thu Aug 3 15:56:48 CEST 2006
> 	/* if no docstring given and the getter has one, use that one */
> 	if ((doc == NULL || doc == Py_None) && get != NULL && 
> 	    PyObject_HasAttrString(get, "__doc__")) {
> 		if (!(get_doc = PyObject_GetAttrString(get, "__doc__")))
> 			return -1;
> 		Py_DECREF(get_doc); /* it is INCREF'd again below */
>                 ^^^^^^^^^^^^^^^^^^
> 		doc = get_doc;
> 	}
> 
> 	Py_XINCREF(get);
> 	Py_XINCREF(set);
> 	Py_XINCREF(del);
> 	Py_XINCREF(doc);
> 

A strange programming style, if you ask me, and I wonder why Coverity doesn't complain
about it.

Thomas

More information about the Python-Dev mailing list

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