[issue2772] Add PendingDeprecationWarning for % formatting

Amaury Forgeot d'Arc report at bugs.python.org
Tue May 6 16:48:31 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

> Do I need to acquire the GIL here?
No, the GIL has already been acquired.

The problem with the static variable is that while the main thread is
PyErr_WarnEx(), another thread may gain focus. And it will not trigger
the warning.

----------
nosy: +amaury.forgeotdarc

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2772>
__________________________________


More information about the Python-bugs-list mailing list