Original Translation
2911
New :class:`~sqlite3.Connection` attribute :attr:`~sqlite3.Connection.in_transaction` is :const:`True` when there are uncommitted changes, and :const:`False` otherwise. (Contributed by R. David Murray and Shashwat Anand, :issue:`8845`.)
2912
Multi-threading
2913
The mechanism for serializing execution of concurrently running Python threads (generally known as the GIL or Global Interpreter Lock) has been rewritten. Among the objectives were more predictable switching intervals and reduced overhead due to lock contention and the number of ensuing system calls. The notion of a "check interval" to allow thread switches has been abandoned and replaced by an absolute duration expressed in seconds. This parameter is tunable through :func:`sys.setswitchinterval()`. It currently defaults to 5 milliseconds.
2914
Additional details about the implementation can be read from a `python-dev mailing-list message <http://mail.python.org/pipermail/python-dev/2009-October/093321.html>`_ (however, "priority requests" as exposed in this message have not been kept for inclusion).
2915
Recursive locks (created with the :func:`threading.RLock` API) now benefit from a C implementation which makes them as fast as regular locks, and between 10x and 15x faster than their previous pure Python implementation.
2916
(Contributed by Antoine Pitrou; :issue:`3001`.)
(Contribution par Antoine Pitrou; :issue:`3001`.)
2917
Regular and recursive locks now accept an optional *timeout* argument to their ``acquire`` method. (Contributed by Antoine Pitrou; :issue:`7316`) Similarly, :meth:`threading.Semaphore.acquire` also gains a *timeout* argument. (Contributed by Torsten Landschoff; :issue:`850728`.)
Les verrous standards et récursifs acceptent désormais un argument optionnel *timeout* à leur méthode ``acquire``. (Contribution par Antoine Pitrou; :issue:`7316`). Pareillement, :meth:`threading.Semaphore.acquire` acquière d'un argument *timeout* (Contribution par Torsten Landschoff; :issue:`850728`).
2918
Porting to Python 3.2
Portage vers Python 3.2
2919
bytearray objects cannot be used anymore as filenames: convert them to bytes
Les objets bytearray ne peuvent plus être utilisés en tant que nom de fichiers : les convertir en octets
2920
PyArg_Parse*() functions:
Les fonctions PyArg_Parse*() :
2921
"t#" format has been removed: use "s#" or "s*" instead
Le format "t#" a été supprimé : utiliser "s#" ou "s*" à la place
2922
"w" and "w#" formats has been removed: use "w*" instead
Les formats "w" et "w#" ont été supprimés : utiliser "w*" à la place
2923
What's New in Python
Quoi de neuf dans Python
2924
The "What's New in Python" series of essays takes tours through the most important changes between major Python versions. They are a "must read" for anyone wishing to stay up-to-date after a new release.
La série d'essais "Quoi de neuf dans Python" reprend les plus importants changements entres les versions majeures de Python. Elles sont à lire pour quiconque souhaitant être à jour suite à une nouvelle sortie.