[Python-Dev] cpython: threading.RLock._acquire_restore() now raises a TypeError instead of a (original) (raw)
Armin Rigo arigo at tunes.org
Sat Jan 4 09:59:14 CET 2014
- Previous message: [Python-Dev] cpython: threading.RLock._acquire_restore() now raises a TypeError instead of a
- Next message: [Python-Dev] [Python-checkins] cpython: add unicode_char() in unicodeobject.c to factorize code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Serhiy,
On Fri, Jan 3, 2014 at 8:59 AM, Serhiy Storchaka <storchaka at gmail.com> wrote:
+ if (!PyArgParseTuple(args, "(kl):acquirerestore", &count, &owner)) Please don't use "(...)" in PyArgParseTuple, 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.
- Previous message: [Python-Dev] cpython: threading.RLock._acquire_restore() now raises a TypeError instead of a
- Next message: [Python-Dev] [Python-checkins] cpython: add unicode_char() in unicodeobject.c to factorize code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]