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/2014-January/130871.html below:

[Python-Dev] cpython: threading.RLock._acquire_restore() now raises a TypeError instead of a

[Python-Dev] cpython: threading.RLock._acquire_restore() now raises a TypeError instead of aArmin Rigo arigo at tunes.org
Sat Jan 4 09:59:14 CET 2014
Hi Serhiy,

On Fri, Jan 3, 2014 at 8:59 AM, Serhiy Storchaka <storchaka at gmail.com> wrote:
>> +    if (!PyArg_ParseTuple(args, "(kl):_acquire_restore", &count, &owner))
>
> Please don't use "(...)" in PyArg_ParseTuple, it is dangerous (see issue6083

I think that in this case it is fine, because the "k" and "l" are
returning C integers.  The refcounting issue occurs only when
PyObject* are returned.


A bientôt,

Armin.
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