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/034558.html below:

[Python-Dev] Big trouble in CVS Python

[Python-Dev] Big trouble in CVS PythonMartin v. Löwis martin@v.loewis.de
13 Apr 2003 22:29:28 +0200
"Tim Peters" <tim_one@email.msn.com> writes:

> However, co_consts is still alive and still points to it, so this
> deallocation is erroneous.

Notice, however, that the float object is not *directly* deallocated.
Instead, it is deallocated as a consequence of deallocating a
one-element tuple which is the argument tuple for "round", in

			PyObject *callargs;
			callargs = load_args(pp_stack, na);
			x = PyCFunction_Call(func, callargs, NULL);
			Py_XDECREF(callargs); 

load_args copies the argument from the stack into the tuple,
transferring the refence. So apparently, the float const gets on the
stack without its reference being bumped...

That's as far as I can get tonight.

Regards,
Martin



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