forked from AFPy/python-docs-fr
Merge branch 'merge-pot' into 3.7
This commit is contained in:
commit 0da9766c6a
71 changed files with 8557 additions and 5624 deletions
| | @ -5,7 +5,7 @@ msgid "" | |||
msgstr "" | ||||
"Project-Id-Version: Python 3.7\n" | ||||
"Report-Msgid-Bugs-To: \n" | ||||
"POT-Creation-Date: 2018-06-28 15:29+0200\n" | ||||
"POT-Creation-Date: 2018-10-12 18:59+0200\n" | ||||
"PO-Revision-Date: 2018-08-03 23:47+0200\n" | ||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||||
"Language-Team: FRENCH <traductions@lists.afpy.org>\n" | ||||
| | @ -18,105 +18,116 @@ msgstr "" | |||
msgid "Context Variables Objects" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:10 | ||||
#: ../Doc/c-api/contextvars.rst:13 | ||||
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 "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:24 | ||||
msgid "See :issue:`34762` for more details." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:29 | ||||
msgid "" | ||||
"This section details the public C API for the :mod:`contextvars` module." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:14 | ||||
#: ../Doc/c-api/contextvars.rst:33 | ||||
msgid "" | ||||
"The C structure used to represent a :class:`contextvars.Context` object." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:19 | ||||
#: ../Doc/c-api/contextvars.rst:38 | ||||
msgid "" | ||||
"The C structure used to represent a :class:`contextvars.ContextVar` object." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:24 | ||||
#: ../Doc/c-api/contextvars.rst:43 | ||||
msgid "The C structure used to represent a :class:`contextvars.Token` object." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:28 | ||||
#: ../Doc/c-api/contextvars.rst:47 | ||||
msgid "The type object representing the *context* type." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:32 | ||||
#: ../Doc/c-api/contextvars.rst:51 | ||||
msgid "The type object representing the *context variable* type." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:36 | ||||
#: ../Doc/c-api/contextvars.rst:55 | ||||
msgid "The type object representing the *context variable token* type." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:39 | ||||
#: ../Doc/c-api/contextvars.rst:58 | ||||
msgid "Type-check macros:" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:43 | ||||
#: ../Doc/c-api/contextvars.rst:62 | ||||
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 | ||||
#: ../Doc/c-api/contextvars.rst:67 | ||||
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 | ||||
#: ../Doc/c-api/contextvars.rst:72 | ||||
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 | ||||
#: ../Doc/c-api/contextvars.rst:76 | ||||
msgid "Context object management functions:" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:61 | ||||
#: ../Doc/c-api/contextvars.rst:80 | ||||
msgid "" | ||||
"Create a new empty context object. Returns ``NULL`` if an error has " | ||||
"occurred." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:66 | ||||
#: ../Doc/c-api/contextvars.rst:85 | ||||
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 | ||||
#: ../Doc/c-api/contextvars.rst:90 | ||||
msgid "" | ||||
"Create a shallow copy of the current thread context. Returns ``NULL`` if an " | ||||
"error has occurred." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:76 | ||||
#: ../Doc/c-api/contextvars.rst:95 | ||||
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 | ||||
#: ../Doc/c-api/contextvars.rst:100 | ||||
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 | ||||
#: ../Doc/c-api/contextvars.rst:106 | ||||
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 | ||||
#: ../Doc/c-api/contextvars.rst:110 | ||||
msgid "Context variable functions:" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:95 | ||||
#: ../Doc/c-api/contextvars.rst:114 | ||||
msgid "" | ||||
"Create a new ``ContextVar`` object. The *name* parameter is used for " | ||||
"introspection and debug purposes. The *def* parameter may optionally " | ||||
| | @ -124,42 +135,42 @@ msgid "" | |||
"occurred, this function returns ``NULL``." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:102 | ||||
#: ../Doc/c-api/contextvars.rst:121 | ||||
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 | ||||
#: ../Doc/c-api/contextvars.rst:125 | ||||
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 | ||||
#: ../Doc/c-api/contextvars.rst:128 | ||||
msgid "*default_value*, if not ``NULL``;" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:110 | ||||
#: ../Doc/c-api/contextvars.rst:129 | ||||
msgid "the default value of *var*, if not ``NULL``;" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:111 | ||||
#: ../Doc/c-api/contextvars.rst:130 | ||||
msgid "``NULL``" | ||||
msgstr "``NULL``" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:113 | ||||
#: ../Doc/c-api/contextvars.rst:132 | ||||
msgid "If the value was found, the function will create a new reference to it." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:117 | ||||
#: ../Doc/c-api/contextvars.rst:136 | ||||
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." | ||||
"to a :c:type:`PyObject` object, or ``NULL`` if an error has occurred." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/c-api/contextvars.rst:123 | ||||
#: ../Doc/c-api/contextvars.rst:142 | ||||
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 " | ||||
| | | |||
Loading…
Add table
Add a link
Reference in a new issue