python-docs-fr/c-api/contextvars.po

173 lines
4.7 KiB
Plaintext
Raw Normal View History

2018-06-28 13:32:56 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2018-07-04 09:08:42 +00:00
# For licence information, see README file.
2018-06-28 13:32:56 +00:00
#
msgid ""
msgstr ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2018-06-28 13:32:56 +00:00
"Report-Msgid-Bugs-To: \n"
2020-09-11 07:11:46 +00:00
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"PO-Revision-Date: 2018-08-03 23:47+0200\n"
2018-06-28 13:32:56 +00:00
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
2018-07-04 09:14:25 +00:00
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n"
2018-06-28 13:32:56 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: c-api/contextvars.rst:6
2018-06-28 13:32:56 +00:00
msgid "Context Variables Objects"
msgstr ""
#: c-api/contextvars.rst:13
2018-10-13 15:54:03 +00:00
msgid ""
"In Python 3.7.1 the signatures of all context variables C APIs were "
"**changed** to use :c:type:`PyObject` pointers instead of :c:type:"
"`PyContext`, :c:type:`PyContextVar`, and :c:type:`PyContextToken`, e.g.::"
msgstr ""
#: c-api/contextvars.rst:24
2018-10-13 15:54:03 +00:00
msgid "See :issue:`34762` for more details."
msgstr ""
#: c-api/contextvars.rst:29
2018-06-28 13:32:56 +00:00
msgid ""
"This section details the public C API for the :mod:`contextvars` module."
msgstr ""
#: c-api/contextvars.rst:33
2018-06-28 13:32:56 +00:00
msgid ""
"The C structure used to represent a :class:`contextvars.Context` object."
msgstr ""
#: c-api/contextvars.rst:38
2018-06-28 13:32:56 +00:00
msgid ""
"The C structure used to represent a :class:`contextvars.ContextVar` object."
msgstr ""
#: c-api/contextvars.rst:43
2018-06-28 13:32:56 +00:00
msgid "The C structure used to represent a :class:`contextvars.Token` object."
msgstr ""
#: c-api/contextvars.rst:47
2018-06-28 13:32:56 +00:00
msgid "The type object representing the *context* type."
msgstr ""
#: c-api/contextvars.rst:51
2018-06-28 13:32:56 +00:00
msgid "The type object representing the *context variable* type."
msgstr ""
#: c-api/contextvars.rst:55
2018-06-28 13:32:56 +00:00
msgid "The type object representing the *context variable token* type."
msgstr ""
#: c-api/contextvars.rst:58
2018-06-28 13:32:56 +00:00
msgid "Type-check macros:"
2019-03-09 22:39:59 +00:00
msgstr "Macros pour vérifier les types :"
2018-06-28 13:32:56 +00:00
#: c-api/contextvars.rst:62
2018-06-28 13:32:56 +00:00
msgid ""
"Return true if *o* is of type :c:data:`PyContext_Type`. *o* must not be "
"``NULL``. This function always succeeds."
2018-06-28 13:32:56 +00:00
msgstr ""
#: c-api/contextvars.rst:67
2018-06-28 13:32:56 +00:00
msgid ""
"Return true if *o* is of type :c:data:`PyContextVar_Type`. *o* must not be "
"``NULL``. This function always succeeds."
2018-06-28 13:32:56 +00:00
msgstr ""
#: c-api/contextvars.rst:72
2018-06-28 13:32:56 +00:00
msgid ""
"Return true if *o* is of type :c:data:`PyContextToken_Type`. *o* must not be "
"``NULL``. This function always succeeds."
2018-06-28 13:32:56 +00:00
msgstr ""
#: c-api/contextvars.rst:76
2018-06-28 13:32:56 +00:00
msgid "Context object management functions:"
msgstr ""
#: c-api/contextvars.rst:80
2018-06-28 13:32:56 +00:00
msgid ""
"Create a new empty context object. Returns ``NULL`` if an error has "
"occurred."
msgstr ""
#: c-api/contextvars.rst:85
2018-06-28 13:32:56 +00:00
msgid ""
"Create a shallow copy of the passed *ctx* context object. Returns ``NULL`` "
"if an error has occurred."
msgstr ""
#: c-api/contextvars.rst:90
2018-06-28 13:32:56 +00:00
msgid ""
"Create a shallow copy of the current thread context. Returns ``NULL`` if an "
"error has occurred."
msgstr ""
#: c-api/contextvars.rst:95
2018-06-28 13:32:56 +00:00
msgid ""
"Set *ctx* as the current context for the current thread. Returns ``0`` on "
"success, and ``-1`` on error."
msgstr ""
#: c-api/contextvars.rst:100
2018-06-28 13:32:56 +00:00
msgid ""
"Deactivate the *ctx* context and restore the previous context as the current "
"context for the current thread. Returns ``0`` on success, and ``-1`` on "
"error."
msgstr ""
2020-07-20 08:56:42 +00:00
#: c-api/contextvars.rst:105
2018-06-28 13:32:56 +00:00
msgid "Context variable functions:"
msgstr ""
2020-07-20 08:56:42 +00:00
#: c-api/contextvars.rst:109
2018-06-28 13:32:56 +00:00
msgid ""
"Create a new ``ContextVar`` object. The *name* parameter is used for "
"introspection and debug purposes. The *def* parameter may optionally "
"specify the default value for the context variable. If an error has "
"occurred, this function returns ``NULL``."
msgstr ""
2020-07-20 08:56:42 +00:00
#: c-api/contextvars.rst:116
2018-06-28 13:32:56 +00:00
msgid ""
"Get the value of a context variable. Returns ``-1`` if an error has "
"occurred during lookup, and ``0`` if no error occurred, whether or not a "
"value was found."
msgstr ""
2020-07-20 08:56:42 +00:00
#: c-api/contextvars.rst:120
2018-06-28 13:32:56 +00:00
msgid ""
"If the context variable was found, *value* will be a pointer to it. If the "
"context variable was *not* found, *value* will point to:"
msgstr ""
2020-07-20 08:56:42 +00:00
#: c-api/contextvars.rst:123
2018-06-28 13:32:56 +00:00
msgid "*default_value*, if not ``NULL``;"
msgstr ""
2020-07-20 08:56:42 +00:00
#: c-api/contextvars.rst:124
2018-06-28 13:32:56 +00:00
msgid "the default value of *var*, if not ``NULL``;"
msgstr ""
2020-07-20 08:56:42 +00:00
#: c-api/contextvars.rst:125
2018-06-28 13:32:56 +00:00
msgid "``NULL``"
msgstr "``NULL``"
2018-06-28 13:32:56 +00:00
2020-07-20 08:56:42 +00:00
#: c-api/contextvars.rst:127
2018-06-28 13:32:56 +00:00
msgid "If the value was found, the function will create a new reference to it."
msgstr ""
2020-07-20 08:56:42 +00:00
#: c-api/contextvars.rst:131
2018-06-28 13:32:56 +00:00
msgid ""
"Set the value of *var* to *value* in the current context. Returns a pointer "
2018-10-13 15:54:03 +00:00
"to a :c:type:`PyObject` object, or ``NULL`` if an error has occurred."
2018-06-28 13:32:56 +00:00
msgstr ""
2020-07-20 08:56:42 +00:00
#: c-api/contextvars.rst:137
2018-06-28 13:32:56 +00:00
msgid ""
"Reset the state of the *var* context variable to that it was in before :c:"
"func:`PyContextVar_Set` that returned the *token* was called. This function "
"returns ``0`` on success and ``-1`` on error."
msgstr ""