# Copyright (C) 2001-2018, Python Software Foundation # For licence information, see README file. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../Doc/c-api/contextvars.rst:6 msgid "Context Variables Objects" msgstr "" #: ../Doc/c-api/contextvars.rst:10 msgid "" "This section details the public C API for the :mod:`contextvars` module." msgstr "" #: ../Doc/c-api/contextvars.rst:14 msgid "" "The C structure used to represent a :class:`contextvars.Context` object." msgstr "" #: ../Doc/c-api/contextvars.rst:19 msgid "" "The C structure used to represent a :class:`contextvars.ContextVar` object." msgstr "" #: ../Doc/c-api/contextvars.rst:24 msgid "The C structure used to represent a :class:`contextvars.Token` object." msgstr "" #: ../Doc/c-api/contextvars.rst:28 msgid "The type object representing the *context* type." msgstr "" #: ../Doc/c-api/contextvars.rst:32 msgid "The type object representing the *context variable* type." msgstr "" #: ../Doc/c-api/contextvars.rst:36 msgid "The type object representing the *context variable token* type." msgstr "" #: ../Doc/c-api/contextvars.rst:39 msgid "Type-check macros:" msgstr "" #: ../Doc/c-api/contextvars.rst:43 msgid "" "Return true if *o* is of type :c:data:`PyContext_Type`. *o* must not be " "*NULL*. This function always succeeds." msgstr "" #: ../Doc/c-api/contextvars.rst:48 msgid "" "Return true if *o* is of type :c:data:`PyContextVar_Type`. *o* must not be " "*NULL*. This function always succeeds." msgstr "" #: ../Doc/c-api/contextvars.rst:53 msgid "" "Return true if *o* is of type :c:data:`PyContextToken_Type`. *o* must not be " "*NULL*. This function always succeeds." msgstr "" #: ../Doc/c-api/contextvars.rst:57 msgid "Context object management functions:" msgstr "" #: ../Doc/c-api/contextvars.rst:61 msgid "" "Create a new empty context object. Returns ``NULL`` if an error has " "occurred." msgstr "" #: ../Doc/c-api/contextvars.rst:66 msgid "" "Create a shallow copy of the passed *ctx* context object. Returns ``NULL`` " "if an error has occurred." msgstr "" #: ../Doc/c-api/contextvars.rst:71 msgid "" "Create a shallow copy of the current thread context. Returns ``NULL`` if an " "error has occurred." msgstr "" #: ../Doc/c-api/contextvars.rst:76 msgid "" "Set *ctx* as the current context for the current thread. Returns ``0`` on " "success, and ``-1`` on error." msgstr "" #: ../Doc/c-api/contextvars.rst:81 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 "" #: ../Doc/c-api/contextvars.rst:87 msgid "" "Clear the context variable free list. Return the total number of freed " "items. This function always succeeds." msgstr "" #: ../Doc/c-api/contextvars.rst:91 msgid "Context variable functions:" msgstr "" #: ../Doc/c-api/contextvars.rst:95 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 "" #: ../Doc/c-api/contextvars.rst:102 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 "" #: ../Doc/c-api/contextvars.rst:106 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 "" #: ../Doc/c-api/contextvars.rst:109 msgid "*default_value*, if not ``NULL``;" msgstr "" #: ../Doc/c-api/contextvars.rst:110 msgid "the default value of *var*, if not ``NULL``;" msgstr "" #: ../Doc/c-api/contextvars.rst:111 msgid "``NULL``" msgstr "``NULL``" #: ../Doc/c-api/contextvars.rst:113 msgid "If the value was found, the function will create a new reference to it." msgstr "" #: ../Doc/c-api/contextvars.rst:117 msgid "" "Set the value of *var* to *value* in the current context. Returns a pointer " "to a :c:type:`PyContextToken` object, or ``NULL`` if an error has occurred." msgstr "" #: ../Doc/c-api/contextvars.rst:123 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 ""