Hi Serhiy,

On Fri, Jan 3, 2014 at 8:59 AM, Serhiy Storchaka <storch...@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.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to