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/130865.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 a [Python-Dev] cpython: threading.RLock._acquire_restore() now raises a TypeError instead of aSerhiy Storchaka storchaka at gmail.com
Fri Jan 3 08:59:23 CET 2014
02.01.14 13:54, victor.stinner написав(ла):
> http://hg.python.org/cpython/rev/9a61be172c23
> changeset:   88249:9a61be172c23
> user:        Victor Stinner <victor.stinner at gmail.com>
> date:        Thu Jan 02 12:47:24 2014 +0100
> summary:
>    threading.RLock._acquire_restore() now raises a TypeError instead of a
> SystemError when it is not called with 2 arguments

> -    if (!PyArg_ParseTuple(arg, "kl:_acquire_restore", &count, &owner))
> +    if (!PyArg_ParseTuple(args, "(kl):_acquire_restore", &count, &owner))
>           return NULL;

Please don't use "(...)" in PyArg_ParseTuple, it is dangerous (see 
issue6083 [1]).

[1] http://bugs.python.org/issue6083


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