Make merge of 3.9 (#1512)

This commit is contained in:
Julien Palard 2021-01-27 20:42:04 +01:00 committed by GitHub
commit 599df826ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -32,10 +32,13 @@ msgstr ""
"disponibles."
#: c-api/bool.rst:16
msgid "Return true if *o* is of type :c:data:`PyBool_Type`."
#, fuzzy
msgid ""
"Return true if *o* is of type :c:data:`PyBool_Type`. This function always "
"succeeds."
msgstr "Renvoie vrai si *o* est de type :c:data:`PyBook_Type`."
#: c-api/bool.rst:21
#: c-api/bool.rst:22
msgid ""
"The Python ``False`` object. This object has no methods. It needs to be "
"treated just like any other object with respect to reference counts."
@ -44,7 +47,7 @@ msgstr ""
"le comptage de référence, il doit être traité comme n'importe quel autre "
"objet."
#: c-api/bool.rst:27
#: c-api/bool.rst:28
msgid ""
"The Python ``True`` object. This object has no methods. It needs to be "
"treated just like any other object with respect to reference counts."
@ -53,7 +56,7 @@ msgstr ""
"le comptage de références, il doit être traité comme n'importe quel autre "
"objet."
#: c-api/bool.rst:33
#: c-api/bool.rst:34
msgid ""
"Return :const:`Py_False` from a function, properly incrementing its "
"reference count."
@ -61,7 +64,7 @@ msgstr ""
"Renvoie :const:`Py_False` depuis une fonction tout en incrémentant son "
"nombre de références."
#: c-api/bool.rst:39
#: c-api/bool.rst:40
msgid ""
"Return :const:`Py_True` from a function, properly incrementing its reference "
"count."
@ -69,7 +72,7 @@ msgstr ""
"Renvoie :const:`Py_True` depuis une fonction, en incrémentant son nombre de "
"références."
#: c-api/bool.rst:45
#: c-api/bool.rst:46
msgid ""
"Return a new reference to :const:`Py_True` or :const:`Py_False` depending on "
"the truth value of *v*."

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2018-10-04 12:21+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -37,17 +37,19 @@ msgid "Type check macros"
msgstr "Macros de vérification de type"
#: c-api/bytearray.rst:27
#, fuzzy
msgid ""
"Return true if the object *o* is a bytearray object or an instance of a "
"subtype of the bytearray type."
"subtype of the bytearray type. This function always succeeds."
msgstr ""
"Renvoie vrai si l'objet *o* est un ``bytearray`` ou une instance d'un sous-"
"type du type ``bytearray``."
#: c-api/bytearray.rst:33
#, fuzzy
msgid ""
"Return true if the object *o* is a bytearray object, but not an instance of "
"a subtype of the bytearray type."
"a subtype of the bytearray type. This function always succeeds."
msgstr ""
"Renvoie vrai si l'objet *o* est un ``bytearray``, mais pas une instance d'un "
"sous-type du type ``bytearray``."

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-01 16:00+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2018-07-03 11:50+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -43,7 +43,7 @@ msgstr ""
#, fuzzy
msgid ""
"Return true if the object *o* is a bytes object or an instance of a subtype "
"of the bytes type."
"of the bytes type. This function always succeeds."
msgstr ""
"Renvoie vrai si l'objet *o* est un ``bytearray`` ou une instance d'un sous-"
"type du type ``bytearray``."
@ -52,7 +52,7 @@ msgstr ""
#, fuzzy
msgid ""
"Return true if the object *o* is a bytes object, but not an instance of a "
"subtype of the bytes type."
"subtype of the bytes type. This function always succeeds."
msgstr ""
"Renvoie vrai si l'objet *o* est un ``bytearray``, mais pas une instance d'un "
"sous-type du type ``bytearray``."

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-01 16:00+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -46,46 +46,48 @@ msgid ""
msgstr ""
#: c-api/capsule.rst:37
msgid "Return true if its argument is a :c:type:`PyCapsule`."
msgid ""
"Return true if its argument is a :c:type:`PyCapsule`. This function always "
"succeeds."
msgstr ""
#: c-api/capsule.rst:42
#: c-api/capsule.rst:43
msgid ""
"Create a :c:type:`PyCapsule` encapsulating the *pointer*. The *pointer* "
"argument may not be ``NULL``."
msgstr ""
#: c-api/capsule.rst:45
#: c-api/capsule.rst:46
msgid "On failure, set an exception and return ``NULL``."
msgstr ""
#: c-api/capsule.rst:47
#: c-api/capsule.rst:48
msgid ""
"The *name* string may either be ``NULL`` or a pointer to a valid C string. "
"If non-``NULL``, this string must outlive the capsule. (Though it is "
"permitted to free it inside the *destructor*.)"
msgstr ""
#: c-api/capsule.rst:51
#: c-api/capsule.rst:52
msgid ""
"If the *destructor* argument is not ``NULL``, it will be called with the "
"capsule as its argument when it is destroyed."
msgstr ""
#: c-api/capsule.rst:54
#: c-api/capsule.rst:55
msgid ""
"If this capsule will be stored as an attribute of a module, the *name* "
"should be specified as ``modulename.attributename``. This will enable other "
"modules to import the capsule using :c:func:`PyCapsule_Import`."
msgstr ""
#: c-api/capsule.rst:61
#: c-api/capsule.rst:62
msgid ""
"Retrieve the *pointer* stored in the capsule. On failure, set an exception "
"and return ``NULL``."
msgstr ""
#: c-api/capsule.rst:64
#: c-api/capsule.rst:65
msgid ""
"The *name* parameter must compare exactly to the name stored in the capsule. "
"If the name stored in the capsule is ``NULL``, the *name* passed in must "
@ -93,46 +95,46 @@ msgid ""
"capsule names."
msgstr ""
#: c-api/capsule.rst:72
#: c-api/capsule.rst:73
msgid ""
"Return the current destructor stored in the capsule. On failure, set an "
"exception and return ``NULL``."
msgstr ""
#: c-api/capsule.rst:75
#: c-api/capsule.rst:76
msgid ""
"It is legal for a capsule to have a ``NULL`` destructor. This makes a "
"``NULL`` return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or :"
"c:func:`PyErr_Occurred` to disambiguate."
msgstr ""
#: c-api/capsule.rst:82
#: c-api/capsule.rst:83
msgid ""
"Return the current context stored in the capsule. On failure, set an "
"exception and return ``NULL``."
msgstr ""
#: c-api/capsule.rst:85
#: c-api/capsule.rst:86
msgid ""
"It is legal for a capsule to have a ``NULL`` context. This makes a ``NULL`` "
"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or :c:func:"
"`PyErr_Occurred` to disambiguate."
msgstr ""
#: c-api/capsule.rst:92
#: c-api/capsule.rst:93
msgid ""
"Return the current name stored in the capsule. On failure, set an exception "
"and return ``NULL``."
msgstr ""
#: c-api/capsule.rst:95
#: c-api/capsule.rst:96
msgid ""
"It is legal for a capsule to have a ``NULL`` name. This makes a ``NULL`` "
"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or :c:func:"
"`PyErr_Occurred` to disambiguate."
msgstr ""
#: c-api/capsule.rst:102
#: c-api/capsule.rst:103
msgid ""
"Import a pointer to a C object from a capsule attribute in a module. The "
"*name* parameter should specify the full name to the attribute, as in "
@ -142,13 +144,13 @@ msgid ""
"import the module conventionally (using :c:func:`PyImport_ImportModule`)."
msgstr ""
#: c-api/capsule.rst:109
#: c-api/capsule.rst:110
msgid ""
"Return the capsule's internal *pointer* on success. On failure, set an "
"exception and return ``NULL``."
msgstr ""
#: c-api/capsule.rst:115
#: c-api/capsule.rst:116
msgid ""
"Determines whether or not *capsule* is a valid capsule. A valid capsule is "
"non-``NULL``, passes :c:func:`PyCapsule_CheckExact`, has a non-``NULL`` "
@ -157,40 +159,40 @@ msgid ""
"compared.)"
msgstr ""
#: c-api/capsule.rst:121
#: c-api/capsule.rst:122
msgid ""
"In other words, if :c:func:`PyCapsule_IsValid` returns a true value, calls "
"to any of the accessors (any function starting with :c:func:`PyCapsule_Get`) "
"are guaranteed to succeed."
msgstr ""
#: c-api/capsule.rst:125
#: c-api/capsule.rst:126
msgid ""
"Return a nonzero value if the object is valid and matches the name passed "
"in. Return ``0`` otherwise. This function will not fail."
msgstr ""
#: c-api/capsule.rst:131
#: c-api/capsule.rst:132
msgid "Set the context pointer inside *capsule* to *context*."
msgstr ""
#: c-api/capsule.rst:140 c-api/capsule.rst:157
#: c-api/capsule.rst:141 c-api/capsule.rst:158
msgid ""
"Return ``0`` on success. Return nonzero and set an exception on failure."
msgstr ""
#: c-api/capsule.rst:138
#: c-api/capsule.rst:139
msgid "Set the destructor inside *capsule* to *destructor*."
msgstr ""
#: c-api/capsule.rst:145
#: c-api/capsule.rst:146
msgid ""
"Set the name inside *capsule* to *name*. If non-``NULL``, the name must "
"outlive the capsule. If the previous *name* stored in the capsule was not "
"``NULL``, no attempt is made to free it."
msgstr ""
#: c-api/capsule.rst:154
#: c-api/capsule.rst:155
msgid ""
"Set the void pointer inside *capsule* to *pointer*. The pointer may not be "
"``NULL``."

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2019-05-09 10:14+0200\n"
"Last-Translator: \n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -51,12 +51,14 @@ msgstr "Type objet correspondant aux objets cellules."
#: c-api/cell.rst:30
#, fuzzy
msgid "Return true if *ob* is a cell object; *ob* must not be ``NULL``."
msgid ""
"Return true if *ob* is a cell object; *ob* must not be ``NULL``. This "
"function always succeeds."
msgstr ""
"Renvoie ``True`` si *ob* est un objet cellule ; *ob* ne doit pas être à "
"*NULL*."
#: c-api/cell.rst:35
#: c-api/cell.rst:36
#, fuzzy
msgid ""
"Create and return a new cell object containing the value *ob*. The parameter "
@ -65,11 +67,11 @@ msgstr ""
"Crée et retourne un nouvel objet cellule contenant la valeur *ob*. Le "
"paramètre peut être mis à *NULL*."
#: c-api/cell.rst:41
#: c-api/cell.rst:42
msgid "Return the contents of the cell *cell*."
msgstr "Renvoie le contenu de la cellule *cell*."
#: c-api/cell.rst:46
#: c-api/cell.rst:47
#, fuzzy
msgid ""
"Return the contents of the cell *cell*, but without checking that *cell* is "
@ -78,7 +80,7 @@ msgstr ""
"Renvoie le contenu de la cellule *cell*, mais sans vérifier si *cell* est "
"non *NULL* et sans vérifier si c'est un objet cellule."
#: c-api/cell.rst:52
#: c-api/cell.rst:53
#, fuzzy
msgid ""
"Set the contents of the cell object *cell* to *value*. This releases the "
@ -91,7 +93,7 @@ msgstr ""
"pas être *NULL* ; si ce n'est pas un objet cellule, ``-1`` est renvoyé. Si "
"c'est un objet cellule, renvoie ``0``."
#: c-api/cell.rst:60
#: c-api/cell.rst:61
#, fuzzy
msgid ""
"Sets the value of the cell object *cell* to *value*. No reference counts "

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2018-02-15 00:30+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -45,7 +45,10 @@ msgstr ""
"class:`code`."
#: c-api/code.rst:30
msgid "Return true if *co* is a :class:`code` object."
#, fuzzy
msgid ""
"Return true if *co* is a :class:`code` object. This function always "
"succeeds."
msgstr "Renvoie vrai si *co* est un objet :class:`code`."
#: c-api/code.rst:34

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2019-01-14 20:31+0100\n"
"Last-Translator: ANTOINE FOURES <afoures@student.42.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -142,17 +142,19 @@ msgstr ""
"Python."
#: c-api/complex.rst:96
#, fuzzy
msgid ""
"Return true if its argument is a :c:type:`PyComplexObject` or a subtype of :"
"c:type:`PyComplexObject`."
"c:type:`PyComplexObject`. This function always succeeds."
msgstr ""
"Renvoie vrai si l'argument est de type :c:type:`PyComplexObject` ou un sous-"
"type de :c:type:`PyComplexObject`."
#: c-api/complex.rst:102
#, fuzzy
msgid ""
"Return true if its argument is a :c:type:`PyComplexObject`, but not a "
"subtype of :c:type:`PyComplexObject`."
"subtype of :c:type:`PyComplexObject`. This function always succeeds."
msgstr ""
"Renvoie vrai si l'argument est de type :c:type:`PyComplexObject`, mais pas "
"un sous-type de :c:type:`PyComplexObject`."

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2018-10-04 12:24+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -38,11 +38,11 @@ msgstr "L'objet type correspondant aux objets coroutines."
#, fuzzy
msgid ""
"Return true if *ob*'s type is :c:type:`PyCoro_Type`; *ob* must not be "
"``NULL``."
"``NULL``. This function always succeeds."
msgstr ""
"Renvoie vrai si *ob* est de type *PyCoro_Type*. *ob* ne doit pas être *NULL*."
#: c-api/coro.rst:31
#: c-api/coro.rst:32
#, fuzzy
msgid ""
"Create and return a new coroutine object based on the *frame* object, with "

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-01 16:00+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2020-06-28 15:17+0200\n"
"Last-Translator: Jules Lasne <jules.lasne@gmail.com>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -59,97 +59,102 @@ msgstr "Macros pour vérifier les types :"
#, fuzzy
msgid ""
"Return true if *ob* is of type :c:data:`PyDateTime_DateType` or a subtype "
"of :c:data:`PyDateTime_DateType`. *ob* must not be ``NULL``."
"of :c:data:`PyDateTime_DateType`. *ob* must not be ``NULL``. This function "
"always succeeds."
msgstr ""
"Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DateType` ou un sous-"
"type de :c:data:`PyDateTime_DateType`. *ob* ne doit pas être *NULL*."
#: c-api/datetime.rst:36
#: c-api/datetime.rst:37
#, fuzzy
msgid ""
"Return true if *ob* is of type :c:data:`PyDateTime_DateType`. *ob* must not "
"be ``NULL``."
"be ``NULL``. This function always succeeds."
msgstr ""
"Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DateType`. *ob* ne doit "
"pas être *NULL*."
#: c-api/datetime.rst:42
#: c-api/datetime.rst:43
#, fuzzy
msgid ""
"Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType` or a "
"subtype of :c:data:`PyDateTime_DateTimeType`. *ob* must not be ``NULL``."
"subtype of :c:data:`PyDateTime_DateTimeType`. *ob* must not be ``NULL``. "
"This function always succeeds."
msgstr ""
"Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DateTimeType` ou un "
"sous-type de :c:data:`PyDateTime_DateTimeType`. *ob* ne doit pas être *NULL*."
#: c-api/datetime.rst:48
#: c-api/datetime.rst:50
#, fuzzy
msgid ""
"Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType`. *ob* must "
"not be ``NULL``."
"not be ``NULL``. This function always succeeds."
msgstr ""
"Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DateTimeType`. *ob* ne "
"doit pas être *NULL*."
#: c-api/datetime.rst:54
#: c-api/datetime.rst:56
#, fuzzy
msgid ""
"Return true if *ob* is of type :c:data:`PyDateTime_TimeType` or a subtype "
"of :c:data:`PyDateTime_TimeType`. *ob* must not be ``NULL``."
"of :c:data:`PyDateTime_TimeType`. *ob* must not be ``NULL``. This function "
"always succeeds."
msgstr ""
"Renvoie vrai si *ob* est de type :c:data:`PyDateTime_TimeType` ou un sous-"
"type de :c:data:`PyDateTime_TimeType`. *ob* ne doit pas être *NULL*."
#: c-api/datetime.rst:60
#: c-api/datetime.rst:63
#, fuzzy
msgid ""
"Return true if *ob* is of type :c:data:`PyDateTime_TimeType`. *ob* must not "
"be ``NULL``."
"be ``NULL``. This function always succeeds."
msgstr ""
"Renvoie vrai si *ob* est de type :c:data:`PyDateTime_TimeType`. *ob* ne doit "
"pas être *NULL*."
#: c-api/datetime.rst:66
#: c-api/datetime.rst:69
#, fuzzy
msgid ""
"Return true if *ob* is of type :c:data:`PyDateTime_DeltaType` or a subtype "
"of :c:data:`PyDateTime_DeltaType`. *ob* must not be ``NULL``."
"of :c:data:`PyDateTime_DeltaType`. *ob* must not be ``NULL``. This "
"function always succeeds."
msgstr ""
"Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DeltaType` ou un sous-"
"type de :c:data:`PyDateTime_DeltaType`. *ob* ne doit pas être *NULL*."
#: c-api/datetime.rst:72
#: c-api/datetime.rst:76
#, fuzzy
msgid ""
"Return true if *ob* is of type :c:data:`PyDateTime_DeltaType`. *ob* must not "
"be ``NULL``."
"be ``NULL``. This function always succeeds."
msgstr ""
"Renvoie vrai si *ob* est de type :c:data:`PyDateTime_DeltaType`. *ob* ne "
"doit pas être *NULL*."
#: c-api/datetime.rst:78
#: c-api/datetime.rst:82
#, fuzzy
msgid ""
"Return true if *ob* is of type :c:data:`PyDateTime_TZInfoType` or a subtype "
"of :c:data:`PyDateTime_TZInfoType`. *ob* must not be ``NULL``."
"of :c:data:`PyDateTime_TZInfoType`. *ob* must not be ``NULL``. This "
"function always succeeds."
msgstr ""
"Renvoie vrai si *ob* est de type :c:data:`PyDateTime_TZInfoType` ou un sous-"
"type de :c:data:`PyDateTime_TZInfoType`. *ob* ne doit pas être *NULL*."
#: c-api/datetime.rst:84
#: c-api/datetime.rst:89
#, fuzzy
msgid ""
"Return true if *ob* is of type :c:data:`PyDateTime_TZInfoType`. *ob* must "
"not be ``NULL``."
"not be ``NULL``. This function always succeeds."
msgstr ""
"Renvoie vrai si *ob* est de type :c:data:`PyDateTime_TZInfoType`. *ob* ne "
"doit pas être *NULL*."
#: c-api/datetime.rst:88
#: c-api/datetime.rst:93
msgid "Macros to create objects:"
msgstr "Macros pour créer des objets :"
#: c-api/datetime.rst:92
#: c-api/datetime.rst:97
msgid ""
"Return a :class:`datetime.date` object with the specified year, month and "
"day."
@ -157,7 +162,7 @@ msgstr ""
"Renvoie un objet :class:`datetime.date` avec l'année, le mois et le jour "
"spécifiés."
#: c-api/datetime.rst:97
#: c-api/datetime.rst:102
msgid ""
"Return a :class:`datetime.datetime` object with the specified year, month, "
"day, hour, minute, second and microsecond."
@ -165,7 +170,7 @@ msgstr ""
"Renvoie un objet :class:`datetime.datetime` avec l'année, le mois, le jour, "
"l'heure, la minute, la seconde et la microseconde spécifiés."
#: c-api/datetime.rst:103
#: c-api/datetime.rst:108
msgid ""
"Return a :class:`datetime.datetime` object with the specified year, month, "
"day, hour, minute, second, microsecond and fold."
@ -174,7 +179,7 @@ msgstr ""
"l'heure, la minute, la seconde, la microseconde et le pli (*fold* en "
"anglais) spécifiés."
#: c-api/datetime.rst:111
#: c-api/datetime.rst:116
msgid ""
"Return a :class:`datetime.time` object with the specified hour, minute, "
"second and microsecond."
@ -182,7 +187,7 @@ msgstr ""
"Renvoie un objet :class:`datetime.time` avec l'heure, la minute, la seconde "
"et la microseconde spécifiées."
#: c-api/datetime.rst:117
#: c-api/datetime.rst:122
msgid ""
"Return a :class:`datetime.time` object with the specified hour, minute, "
"second, microsecond and fold."
@ -190,7 +195,7 @@ msgstr ""
"Renvoie un objet :class:`datetime.time` avec l'heure, la minute, la seconde, "
"la microseconde et le pli (*fold* en anglais) spécifiés."
#: c-api/datetime.rst:125
#: c-api/datetime.rst:130
msgid ""
"Return a :class:`datetime.timedelta` object representing the given number of "
"days, seconds and microseconds. Normalization is performed so that the "
@ -202,7 +207,7 @@ msgstr ""
"normalisé pour que le nombre de microsecondes et de secondes tombe dans la "
"plage documentée pour les objets :class:`datetime.timedelta`."
#: c-api/datetime.rst:132
#: c-api/datetime.rst:137
msgid ""
"Return a :class:`datetime.timezone` object with an unnamed fixed offset "
"represented by the *offset* argument."
@ -210,7 +215,7 @@ msgstr ""
"Renvoie un objet :class:`datetime.timezone` avec un décalage anonyme fixe "
"représenté par l'argument *offset*."
#: c-api/datetime.rst:139
#: c-api/datetime.rst:144
msgid ""
"Return a :class:`datetime.timezone` object with a fixed offset represented "
"by the *offset* argument and with tzname *name*."
@ -218,7 +223,7 @@ msgstr ""
"Renvoie un objet :class:`datetime.timezone` avec un décalage fixe représenté "
"par l'argument *offset* et avec le nom de fuseau horaire *name*."
#: c-api/datetime.rst:145
#: c-api/datetime.rst:150
#, fuzzy
msgid ""
"Macros to extract fields from date objects. The argument must be an "
@ -231,19 +236,19 @@ msgstr ""
"`PyDateTime_DateTime`). L'argument ne doit pas être *NULL*, et le type n'est "
"pas vérifié :"
#: c-api/datetime.rst:152
#: c-api/datetime.rst:157
msgid "Return the year, as a positive int."
msgstr "Renvoie l'année, sous forme d'entier positif."
#: c-api/datetime.rst:157
#: c-api/datetime.rst:162
msgid "Return the month, as an int from 1 through 12."
msgstr "Renvoie le mois, sous forme d'entier allant de 1 à 12."
#: c-api/datetime.rst:162
#: c-api/datetime.rst:167
msgid "Return the day, as an int from 1 through 31."
msgstr "Renvoie le jour, sous forme d'entier allant de 1 à 31."
#: c-api/datetime.rst:165
#: c-api/datetime.rst:170
#, fuzzy
msgid ""
"Macros to extract fields from datetime objects. The argument must be an "
@ -254,23 +259,23 @@ msgstr ""
"une instance de :c:data:`PyDateTime_DateTime` ou une sous-classe de celle-"
"ci. L'argument ne doit pas être *NULL*, et le type n'est pas vérifié :"
#: c-api/datetime.rst:195
#: c-api/datetime.rst:200
msgid "Return the hour, as an int from 0 through 23."
msgstr "Renvoie l'heure, sous forme d'entier allant de 0 à 23."
#: c-api/datetime.rst:200
#: c-api/datetime.rst:205
msgid "Return the minute, as an int from 0 through 59."
msgstr "Renvoie la minute, sous forme d'entier allant de 0 à 59."
#: c-api/datetime.rst:205
#: c-api/datetime.rst:210
msgid "Return the second, as an int from 0 through 59."
msgstr "Renvoie la seconde, sous forme d'entier allant de 0 à 59."
#: c-api/datetime.rst:210
#: c-api/datetime.rst:215
msgid "Return the microsecond, as an int from 0 through 999999."
msgstr "Renvoie la microseconde, sous forme d'entier allant de 0 à 999999."
#: c-api/datetime.rst:189
#: c-api/datetime.rst:194
#, fuzzy
msgid ""
"Macros to extract fields from time objects. The argument must be an "
@ -281,7 +286,7 @@ msgstr ""
"instance de :c:data:`PyDateTime_Time` ou une sous-classe de celle-ci. "
"L'argument ne doit pas être *NULL*, et le type n'est pas vérifié :"
#: c-api/datetime.rst:213
#: c-api/datetime.rst:218
#, fuzzy
msgid ""
"Macros to extract fields from time delta objects. The argument must be an "
@ -292,26 +297,26 @@ msgstr ""
"être une instance de :c:data:`PyDateTime_Delta` ou une sous-classe de celle-"
"ci. L'argument ne doit pas être *NULL*, et le type n'est pas vérifié :"
#: c-api/datetime.rst:219
#: c-api/datetime.rst:224
msgid "Return the number of days, as an int from -999999999 to 999999999."
msgstr ""
"Renvoie le nombre de jours, sous forme d'entier allant de ``-999999999`` à "
"``999999999``."
#: c-api/datetime.rst:226
#: c-api/datetime.rst:231
msgid "Return the number of seconds, as an int from 0 through 86399."
msgstr "Renvoie le nombre de secondes sous forme d'entier allant de 0 à 86399."
#: c-api/datetime.rst:233
#: c-api/datetime.rst:238
msgid "Return the number of microseconds, as an int from 0 through 999999."
msgstr ""
"Renvoie le nombre de microsecondes, sous forme d'entier allant de 0 à 999999."
#: c-api/datetime.rst:238
#: c-api/datetime.rst:243
msgid "Macros for the convenience of modules implementing the DB API:"
msgstr "Macros de confort pour les modules implémentant l'API DB :"
#: c-api/datetime.rst:242
#: c-api/datetime.rst:247
msgid ""
"Create and return a new :class:`datetime.datetime` object given an argument "
"tuple suitable for passing to :meth:`datetime.datetime.fromtimestamp()`."
@ -319,7 +324,7 @@ msgstr ""
"Crée et renvoie un nouvel objet :class:`datetime.datetime` à partir d'un n-"
"uplet qui peut être passé à :meth:`datetime.datetime.fromtimestamp()`."
#: c-api/datetime.rst:248
#: c-api/datetime.rst:253
msgid ""
"Create and return a new :class:`datetime.date` object given an argument "
"tuple suitable for passing to :meth:`datetime.date.fromtimestamp()`."

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-15 22:05+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2018-07-03 11:36+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -38,13 +38,13 @@ msgstr ""
#: c-api/dict.rst:24
msgid ""
"Return true if *p* is a dict object or an instance of a subtype of the dict "
"type."
"type. This function always succeeds."
msgstr ""
#: c-api/dict.rst:30
msgid ""
"Return true if *p* is a dict object, but not an instance of a subtype of the "
"dict type."
"dict type. This function always succeeds."
msgstr ""
#: c-api/dict.rst:36

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2019-01-14 15:30+0100\n"
"Last-Translator: ANTOINE FOURES <afoures@student.42.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -35,17 +35,19 @@ msgstr ""
"`float` de la couche Python."
#: c-api/float.rst:24
#, fuzzy
msgid ""
"Return true if its argument is a :c:type:`PyFloatObject` or a subtype of :c:"
"type:`PyFloatObject`."
"type:`PyFloatObject`. This function always succeeds."
msgstr ""
"Renvoie vrai si l'argument est de type :c:type:`PyFloatObject` ou un sous-"
"type de :c:type:`PyFloatObject`."
#: c-api/float.rst:30
#, fuzzy
msgid ""
"Return true if its argument is a :c:type:`PyFloatObject`, but not a subtype "
"of :c:type:`PyFloatObject`."
"of :c:type:`PyFloatObject`. This function always succeeds."
msgstr ""
"Renvoie vrai si l'argument est de type :c:type:`PyFloatObject`, mais pas un "
"sous-type de :c:type:`PyFloatObject`."

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-01 16:00+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -36,7 +36,8 @@ msgstr ""
#: c-api/function.rst:28
msgid ""
"Return true if *o* is a function object (has type :c:data:"
"`PyFunction_Type`). The parameter must not be ``NULL``."
"`PyFunction_Type`). The parameter must not be ``NULL``. This function "
"always succeeds."
msgstr ""
#: c-api/function.rst:34

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2018-10-04 12:24+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -41,21 +41,23 @@ msgstr "Le type objet correspondant aux objets générateurs."
#: c-api/gen.rst:25
#, fuzzy
msgid "Return true if *ob* is a generator object; *ob* must not be ``NULL``."
msgid ""
"Return true if *ob* is a generator object; *ob* must not be ``NULL``. This "
"function always succeeds."
msgstr ""
"Renvoie ``True`` si *ob* est un objet générateur. *ob* ne doit pas être "
"*NULL*."
#: c-api/gen.rst:30
#: c-api/gen.rst:31
#, fuzzy
msgid ""
"Return true if *ob*'s type is :c:type:`PyGen_Type`; *ob* must not be "
"``NULL``."
"``NULL``. This function always succeeds."
msgstr ""
"Renvoie ``True`` si le type de *ob* est *PyGen_Type*. *ob* ne doit pas être "
"*NULL*."
#: c-api/gen.rst:35
#: c-api/gen.rst:37
#, fuzzy
msgid ""
"Create and return a new generator object based on the *frame* object. A "
@ -66,7 +68,7 @@ msgstr ""
"référence à *frame* est volée par cette fonction. L'argument ne doit pas "
"être *NULL*."
#: c-api/gen.rst:41
#: c-api/gen.rst:43
#, fuzzy
msgid ""
"Create and return a new generator object based on the *frame* object, with "

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2018-02-15 00:33+0100\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -23,10 +23,13 @@ msgid "There are two functions specifically for working with iterators."
msgstr "Il existe deux fonctions dédiées à l'interaction avec les itérateurs."
#: c-api/iter.rst:12
msgid "Return true if the object *o* supports the iterator protocol."
#, fuzzy
msgid ""
"Return true if the object *o* supports the iterator protocol. This function "
"always succeeds."
msgstr "Renvoie vrai si l'objet *o* supporte le protocole d'itération."
#: c-api/iter.rst:17
#: c-api/iter.rst:18
#, fuzzy
msgid ""
"Return the next value from the iteration *o*. The object must be an "
@ -40,7 +43,7 @@ msgstr ""
"déclarant une exception si une erreur survient lors de la récupération d'un "
"élément."
#: c-api/iter.rst:22
#: c-api/iter.rst:23
msgid ""
"To write a loop which iterates over an iterator, the C code should look "
"something like this::"

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2019-03-26 17:16+0100\n"
"Last-Translator: ANTOINE FOURES <afoures@student.42.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -44,10 +44,13 @@ msgstr ""
"natives."
#: c-api/iterator.rst:24
msgid "Return true if the type of *op* is :c:data:`PySeqIter_Type`."
#, fuzzy
msgid ""
"Return true if the type of *op* is :c:data:`PySeqIter_Type`. This function "
"always succeeds."
msgstr "Renvoie vrai si *op* est de type :c:data:`PySeqIter_Type`."
#: c-api/iterator.rst:29
#: c-api/iterator.rst:30
msgid ""
"Return an iterator that works with a general sequence object, *seq*. The "
"iteration ends when the sequence raises :exc:`IndexError` for the "
@ -56,7 +59,7 @@ msgstr ""
"Renvoie un itérateur sur la séquence *seq*. L'itération prend fin lorsque la "
"séquence lève :exc:`IndexError` lors d'une tentative d'accès."
#: c-api/iterator.rst:36
#: c-api/iterator.rst:37
msgid ""
"Type object for iterator objects returned by :c:func:`PyCallIter_New` and "
"the two-argument form of the :func:`iter` built-in function."
@ -64,11 +67,14 @@ msgstr ""
"Type de l'itérateur renvoyé par les fonctions :c:func:`PyCallIter_New` et :"
"func:`iter` à deux arguments."
#: c-api/iterator.rst:42
msgid "Return true if the type of *op* is :c:data:`PyCallIter_Type`."
#: c-api/iterator.rst:43
#, fuzzy
msgid ""
"Return true if the type of *op* is :c:data:`PyCallIter_Type`. This function "
"always succeeds."
msgstr "Renvoie vrai si *op* est de type :c:data:`PyCallIter_Type`."
#: c-api/iterator.rst:47
#: c-api/iterator.rst:49
msgid ""
"Return a new iterator. The first parameter, *callable*, can be any Python "
"callable object that can be called with no parameters; each call to it "

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -37,13 +37,13 @@ msgstr ""
#: c-api/list.rst:24
msgid ""
"Return true if *p* is a list object or an instance of a subtype of the list "
"type."
"type. This function always succeeds."
msgstr ""
#: c-api/list.rst:30
msgid ""
"Return true if *p* is a list object, but not an instance of a subtype of the "
"list type."
"list type. This function always succeeds."
msgstr ""
#: c-api/list.rst:36

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-01 16:00+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -50,7 +50,7 @@ msgstr ""
#, fuzzy
msgid ""
"Return true if its argument is a :c:type:`PyLongObject` or a subtype of :c:"
"type:`PyLongObject`."
"type:`PyLongObject`. This function always succeeds."
msgstr ""
"Renvoie vrai si l'argument est de type :c:type:`PyFloatObject` ou un sous-"
"type de :c:type:`PyFloatObject`."
@ -59,7 +59,7 @@ msgstr ""
#, fuzzy
msgid ""
"Return true if its argument is a :c:type:`PyLongObject`, but not a subtype "
"of :c:type:`PyLongObject`."
"of :c:type:`PyLongObject`. This function always succeeds."
msgstr ""
"Renvoie vrai si l'argument est de type :c:type:`PyFloatObject`, mais pas un "
"sous-type de :c:type:`PyFloatObject`."

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-01 16:00+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2020-09-30 11:10+0200\n"
"Last-Translator: Andy Kwok <andy.kwok.work@gmail.com>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -73,14 +73,16 @@ msgstr ""
"la *memoryview* pointe vers un nouvel objet *bytes*."
#: c-api/memoryview.rst:47
#, fuzzy
msgid ""
"Return true if the object *obj* is a memoryview object. It is not currently "
"allowed to create subclasses of :class:`memoryview`."
"allowed to create subclasses of :class:`memoryview`. This function always "
"succeeds."
msgstr ""
"Renvoie vrai si l'objet *obj* est un objet *memoryview*. Il n'est pas permis "
"de créer une sous-classe de :class:`memoryview`."
#: c-api/memoryview.rst:53
#: c-api/memoryview.rst:54
msgid ""
"Return a pointer to the memoryview's private copy of the exporter's buffer. "
"*mview* **must** be a memoryview instance; this macro doesn't check its "
@ -91,7 +93,7 @@ msgstr ""
"macro ne vérifie pas le type, vous devez le faire vous-même sinon vous "
"pourriez subir un crash."
#: c-api/memoryview.rst:59
#: c-api/memoryview.rst:60
msgid ""
"Return either a pointer to the exporting object that the memoryview is based "
"on or ``NULL`` if the memoryview has been created by one of the functions :c:"

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -34,69 +34,70 @@ msgstr ""
#: c-api/method.rst:23
msgid ""
"Return true if *o* is an instance method object (has type :c:data:"
"`PyInstanceMethod_Type`). The parameter must not be ``NULL``."
"`PyInstanceMethod_Type`). The parameter must not be ``NULL``. This function "
"always succeeds."
msgstr ""
#: c-api/method.rst:29
#: c-api/method.rst:30
msgid ""
"Return a new instance method object, with *func* being any callable object "
"*func* is the function that will be called when the instance method is "
"called."
msgstr ""
#: c-api/method.rst:36
#: c-api/method.rst:37
msgid "Return the function object associated with the instance method *im*."
msgstr ""
#: c-api/method.rst:41
#: c-api/method.rst:42
msgid ""
"Macro version of :c:func:`PyInstanceMethod_Function` which avoids error "
"checking."
msgstr ""
#: c-api/method.rst:47
#: c-api/method.rst:48
msgid "Method Objects"
msgstr "Objets méthode"
#: c-api/method.rst:51
#: c-api/method.rst:52
msgid ""
"Methods are bound function objects. Methods are always bound to an instance "
"of a user-defined class. Unbound methods (methods bound to a class object) "
"are no longer available."
msgstr ""
#: c-api/method.rst:60
#: c-api/method.rst:61
msgid ""
"This instance of :c:type:`PyTypeObject` represents the Python method type. "
"This is exposed to Python programs as ``types.MethodType``."
msgstr ""
#: c-api/method.rst:66
#: c-api/method.rst:67
msgid ""
"Return true if *o* is a method object (has type :c:data:`PyMethod_Type`). "
"The parameter must not be ``NULL``."
"The parameter must not be ``NULL``. This function always succeeds."
msgstr ""
#: c-api/method.rst:72
#: c-api/method.rst:73
msgid ""
"Return a new method object, with *func* being any callable object and *self* "
"the instance the method should be bound. *func* is the function that will be "
"called when the method is called. *self* must not be ``NULL``."
msgstr ""
#: c-api/method.rst:79
#: c-api/method.rst:80
msgid "Return the function object associated with the method *meth*."
msgstr ""
#: c-api/method.rst:84
#: c-api/method.rst:85
msgid ""
"Macro version of :c:func:`PyMethod_Function` which avoids error checking."
msgstr ""
#: c-api/method.rst:89
#: c-api/method.rst:90
msgid "Return the instance associated with the method *meth*."
msgstr ""
#: c-api/method.rst:94
#: c-api/method.rst:95
msgid "Macro version of :c:func:`PyMethod_Self` which avoids error checking."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-01 16:00+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -25,16 +25,18 @@ msgid ""
msgstr ""
#: c-api/module.rst:21
msgid "Return true if *p* is a module object, or a subtype of a module object."
msgid ""
"Return true if *p* is a module object, or a subtype of a module object. This "
"function always succeeds."
msgstr ""
#: c-api/module.rst:26
#: c-api/module.rst:27
msgid ""
"Return true if *p* is a module object, but not a subtype of :c:data:"
"`PyModule_Type`."
"`PyModule_Type`. This function always succeeds."
msgstr ""
#: c-api/module.rst:39
#: c-api/module.rst:40
msgid ""
"Return a new module object with the :attr:`__name__` attribute set to "
"*name*. The module's :attr:`__name__`, :attr:`__doc__`, :attr:`__package__`, "
@ -43,17 +45,17 @@ msgid ""
"`__file__` attribute."
msgstr ""
#: c-api/module.rst:47
#: c-api/module.rst:48
msgid ":attr:`__package__` and :attr:`__loader__` are set to ``None``."
msgstr ""
#: c-api/module.rst:53
#: c-api/module.rst:54
msgid ""
"Similar to :c:func:`PyModule_NewObject`, but the name is a UTF-8 encoded "
"string instead of a Unicode object."
msgstr ""
#: c-api/module.rst:61
#: c-api/module.rst:62
msgid ""
"Return the dictionary object that implements *module*'s namespace; this "
"object is the same as the :attr:`~object.__dict__` attribute of the module "
@ -61,40 +63,40 @@ msgid ""
"object), :exc:`SystemError` is raised and ``NULL`` is returned."
msgstr ""
#: c-api/module.rst:66
#: c-api/module.rst:67
msgid ""
"It is recommended extensions use other :c:func:`PyModule_\\*` and :c:func:"
"`PyObject_\\*` functions rather than directly manipulate a module's :attr:"
"`~object.__dict__`."
msgstr ""
#: c-api/module.rst:77
#: c-api/module.rst:78
msgid ""
"Return *module*'s :attr:`__name__` value. If the module does not provide "
"one, or if it is not a string, :exc:`SystemError` is raised and ``NULL`` is "
"returned."
msgstr ""
#: c-api/module.rst:85
#: c-api/module.rst:86
msgid ""
"Similar to :c:func:`PyModule_GetNameObject` but return the name encoded to "
"``'utf-8'``."
msgstr ""
#: c-api/module.rst:90
#: c-api/module.rst:91
msgid ""
"Return the \"state\" of the module, that is, a pointer to the block of "
"memory allocated at module creation time, or ``NULL``. See :c:member:"
"`PyModuleDef.m_size`."
msgstr ""
#: c-api/module.rst:97
#: c-api/module.rst:98
msgid ""
"Return a pointer to the :c:type:`PyModuleDef` struct from which the module "
"was created, or ``NULL`` if the module wasn't created from a definition."
msgstr ""
#: c-api/module.rst:107
#: c-api/module.rst:108
msgid ""
"Return the name of the file from which *module* was loaded using *module*'s :"
"attr:`__file__` attribute. If this is not defined, or if it is not a "
@ -102,23 +104,23 @@ msgid ""
"return a reference to a Unicode object."
msgstr ""
#: c-api/module.rst:117
#: c-api/module.rst:118
msgid ""
"Similar to :c:func:`PyModule_GetFilenameObject` but return the filename "
"encoded to 'utf-8'."
msgstr ""
#: c-api/module.rst:120
#: c-api/module.rst:121
msgid ""
":c:func:`PyModule_GetFilename` raises :c:type:`UnicodeEncodeError` on "
"unencodable filenames, use :c:func:`PyModule_GetFilenameObject` instead."
msgstr ""
#: c-api/module.rst:128
#: c-api/module.rst:129
msgid "Initializing C modules"
msgstr ""
#: c-api/module.rst:130
#: c-api/module.rst:131
msgid ""
"Modules objects are usually created from extension modules (shared libraries "
"which export an initialization function), or compiled-in modules (where the "
@ -126,55 +128,55 @@ msgid ""
"See :ref:`building` or :ref:`extending-with-embedding` for details."
msgstr ""
#: c-api/module.rst:135
#: c-api/module.rst:136
msgid ""
"The initialization function can either pass a module definition instance to :"
"c:func:`PyModule_Create`, and return the resulting module object, or request "
"\"multi-phase initialization\" by returning the definition struct itself."
msgstr ""
#: c-api/module.rst:141
#: c-api/module.rst:142
msgid ""
"The module definition struct, which holds all information needed to create a "
"module object. There is usually only one statically initialized variable of "
"this type for each module."
msgstr ""
#: c-api/module.rst:147
#: c-api/module.rst:148
msgid "Always initialize this member to :const:`PyModuleDef_HEAD_INIT`."
msgstr ""
#: c-api/module.rst:151
#: c-api/module.rst:152
msgid "Name for the new module."
msgstr ""
#: c-api/module.rst:155
#: c-api/module.rst:156
msgid ""
"Docstring for the module; usually a docstring variable created with :c:macro:"
"`PyDoc_STRVAR` is used."
msgstr ""
#: c-api/module.rst:160
#: c-api/module.rst:161
msgid ""
"Module state may be kept in a per-module memory area that can be retrieved "
"with :c:func:`PyModule_GetState`, rather than in static globals. This makes "
"modules safe for use in multiple sub-interpreters."
msgstr ""
#: c-api/module.rst:164
#: c-api/module.rst:165
msgid ""
"This memory area is allocated based on *m_size* on module creation, and "
"freed when the module object is deallocated, after the :c:member:`m_free` "
"function has been called, if present."
msgstr ""
#: c-api/module.rst:168
#: c-api/module.rst:169
msgid ""
"Setting ``m_size`` to ``-1`` means that the module does not support sub-"
"interpreters, because it has global state."
msgstr ""
#: c-api/module.rst:171
#: c-api/module.rst:172
msgid ""
"Setting it to a non-negative value means that the module can be re-"
"initialized and specifies the additional amount of memory it requires for "
@ -182,36 +184,36 @@ msgid ""
"initialization."
msgstr ""
#: c-api/module.rst:176
#: c-api/module.rst:177
msgid "See :PEP:`3121` for more details."
msgstr ""
#: c-api/module.rst:180
#: c-api/module.rst:181
msgid ""
"A pointer to a table of module-level functions, described by :c:type:"
"`PyMethodDef` values. Can be ``NULL`` if no functions are present."
msgstr ""
#: c-api/module.rst:185
#: c-api/module.rst:186
msgid ""
"An array of slot definitions for multi-phase initialization, terminated by a "
"``{0, NULL}`` entry. When using single-phase initialization, *m_slots* must "
"be ``NULL``."
msgstr ""
#: c-api/module.rst:191
#: c-api/module.rst:192
msgid ""
"Prior to version 3.5, this member was always set to ``NULL``, and was "
"defined as:"
msgstr ""
#: c-api/module.rst:198
#: c-api/module.rst:199
msgid ""
"A traversal function to call during GC traversal of the module object, or "
"``NULL`` if not needed."
msgstr ""
#: c-api/module.rst:216 c-api/module.rst:231
#: c-api/module.rst:217 c-api/module.rst:232
msgid ""
"This function is not called if the module state was requested but is not "
"allocated yet. This is the case immediately after the module is created and "
@ -221,65 +223,65 @@ msgid ""
"``NULL``."
msgstr ""
#: c-api/module.rst:223 c-api/module.rst:238
#: c-api/module.rst:224 c-api/module.rst:239
msgid "No longer called before the module state is allocated."
msgstr ""
#: c-api/module.rst:213
#: c-api/module.rst:214
msgid ""
"A clear function to call during GC clearing of the module object, or "
"``NULL`` if not needed."
msgstr ""
#: c-api/module.rst:228
#: c-api/module.rst:229
msgid ""
"A function to call during deallocation of the module object, or ``NULL`` if "
"not needed."
msgstr ""
#: c-api/module.rst:242
#: c-api/module.rst:243
msgid "Single-phase initialization"
msgstr ""
#: c-api/module.rst:244
#: c-api/module.rst:245
msgid ""
"The module initialization function may create and return the module object "
"directly. This is referred to as \"single-phase initialization\", and uses "
"one of the following two module creation functions:"
msgstr ""
#: c-api/module.rst:250
#: c-api/module.rst:251
msgid ""
"Create a new module object, given the definition in *def*. This behaves "
"like :c:func:`PyModule_Create2` with *module_api_version* set to :const:"
"`PYTHON_API_VERSION`."
msgstr ""
#: c-api/module.rst:257
#: c-api/module.rst:258
msgid ""
"Create a new module object, given the definition in *def*, assuming the API "
"version *module_api_version*. If that version does not match the version of "
"the running interpreter, a :exc:`RuntimeWarning` is emitted."
msgstr ""
#: c-api/module.rst:263
#: c-api/module.rst:264
msgid ""
"Most uses of this function should be using :c:func:`PyModule_Create` "
"instead; only use this if you are sure you need it."
msgstr ""
#: c-api/module.rst:266
#: c-api/module.rst:267
msgid ""
"Before it is returned from in the initialization function, the resulting "
"module object is typically populated using functions like :c:func:"
"`PyModule_AddObject`."
msgstr ""
#: c-api/module.rst:272
#: c-api/module.rst:273
msgid "Multi-phase initialization"
msgstr ""
#: c-api/module.rst:274
#: c-api/module.rst:275
msgid ""
"An alternate way to specify extensions is to request \"multi-phase "
"initialization\". Extension modules created this way behave more like Python "
@ -289,7 +291,7 @@ msgid ""
"methods of classes."
msgstr ""
#: c-api/module.rst:281
#: c-api/module.rst:282
msgid ""
"Unlike modules created using single-phase initialization, these modules are "
"not singletons: if the *sys.modules* entry is removed and the module is re-"
@ -302,14 +304,14 @@ msgid ""
"or individual classes created with :c:func:`PyType_FromSpec`)."
msgstr ""
#: c-api/module.rst:291
#: c-api/module.rst:292
msgid ""
"All modules created using multi-phase initialization are expected to "
"support :ref:`sub-interpreters <sub-interpreter-support>`. Making sure "
"multiple modules are independent is typically enough to achieve this."
msgstr ""
#: c-api/module.rst:295
#: c-api/module.rst:296
msgid ""
"To request multi-phase initialization, the initialization function "
"(PyInit_modulename) returns a :c:type:`PyModuleDef` instance with non-empty :"
@ -317,65 +319,65 @@ msgid ""
"instance must be initialized with the following function:"
msgstr ""
#: c-api/module.rst:302
#: c-api/module.rst:303
msgid ""
"Ensures a module definition is a properly initialized Python object that "
"correctly reports its type and reference count."
msgstr ""
#: c-api/module.rst:305
#: c-api/module.rst:306
msgid "Returns *def* cast to ``PyObject*``, or ``NULL`` if an error occurred."
msgstr ""
#: c-api/module.rst:309
#: c-api/module.rst:310
msgid ""
"The *m_slots* member of the module definition must point to an array of "
"``PyModuleDef_Slot`` structures:"
msgstr ""
#: c-api/module.rst:316
#: c-api/module.rst:317
msgid "A slot ID, chosen from the available values explained below."
msgstr ""
#: c-api/module.rst:320
#: c-api/module.rst:321
msgid "Value of the slot, whose meaning depends on the slot ID."
msgstr ""
#: c-api/module.rst:324
#: c-api/module.rst:325
msgid "The *m_slots* array must be terminated by a slot with id 0."
msgstr ""
#: c-api/module.rst:326
#: c-api/module.rst:327
msgid "The available slot types are:"
msgstr ""
#: c-api/module.rst:330
#: c-api/module.rst:331
msgid ""
"Specifies a function that is called to create the module object itself. The "
"*value* pointer of this slot must point to a function of the signature:"
msgstr ""
#: c-api/module.rst:335
#: c-api/module.rst:336
msgid ""
"The function receives a :py:class:`~importlib.machinery.ModuleSpec` "
"instance, as defined in :PEP:`451`, and the module definition. It should "
"return a new module object, or set an error and return ``NULL``."
msgstr ""
#: c-api/module.rst:340
#: c-api/module.rst:341
msgid ""
"This function should be kept minimal. In particular, it should not call "
"arbitrary Python code, as trying to import the same module again may result "
"in an infinite loop."
msgstr ""
#: c-api/module.rst:344
#: c-api/module.rst:345
msgid ""
"Multiple ``Py_mod_create`` slots may not be specified in one module "
"definition."
msgstr ""
#: c-api/module.rst:347
#: c-api/module.rst:348
msgid ""
"If ``Py_mod_create`` is not specified, the import machinery will create a "
"normal module object using :c:func:`PyModule_New`. The name is taken from "
@ -384,7 +386,7 @@ msgid ""
"through symlinks, all while sharing a single module definition."
msgstr ""
#: c-api/module.rst:353
#: c-api/module.rst:354
msgid ""
"There is no requirement for the returned object to be an instance of :c:type:"
"`PyModule_Type`. Any type can be used, as long as it supports setting and "
@ -394,7 +396,7 @@ msgid ""
"``Py_mod_create``."
msgstr ""
#: c-api/module.rst:362
#: c-api/module.rst:363
msgid ""
"Specifies a function that is called to *execute* the module. This is "
"equivalent to executing the code of a Python module: typically, this "
@ -402,21 +404,21 @@ msgid ""
"function is:"
msgstr ""
#: c-api/module.rst:369
#: c-api/module.rst:370
msgid ""
"If multiple ``Py_mod_exec`` slots are specified, they are processed in the "
"order they appear in the *m_slots* array."
msgstr ""
#: c-api/module.rst:372
#: c-api/module.rst:373
msgid "See :PEP:`489` for more details on multi-phase initialization."
msgstr ""
#: c-api/module.rst:375
#: c-api/module.rst:376
msgid "Low-level module creation functions"
msgstr ""
#: c-api/module.rst:377
#: c-api/module.rst:378
msgid ""
"The following functions are called under the hood when using multi-phase "
"initialization. They can be used directly, for example when creating module "
@ -424,14 +426,14 @@ msgid ""
"``PyModule_ExecDef`` must be called to fully initialize a module."
msgstr ""
#: c-api/module.rst:384
#: c-api/module.rst:385
msgid ""
"Create a new module object, given the definition in *module* and the "
"ModuleSpec *spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2` "
"with *module_api_version* set to :const:`PYTHON_API_VERSION`."
msgstr ""
#: c-api/module.rst:392
#: c-api/module.rst:393
msgid ""
"Create a new module object, given the definition in *module* and the "
"ModuleSpec *spec*, assuming the API version *module_api_version*. If that "
@ -439,24 +441,24 @@ msgid ""
"`RuntimeWarning` is emitted."
msgstr ""
#: c-api/module.rst:399
#: c-api/module.rst:400
msgid ""
"Most uses of this function should be using :c:func:`PyModule_FromDefAndSpec` "
"instead; only use this if you are sure you need it."
msgstr ""
#: c-api/module.rst:406
#: c-api/module.rst:407
msgid "Process any execution slots (:c:data:`Py_mod_exec`) given in *def*."
msgstr ""
#: c-api/module.rst:412
#: c-api/module.rst:413
msgid ""
"Set the docstring for *module* to *docstring*. This function is called "
"automatically when creating a module from ``PyModuleDef``, using either "
"``PyModule_Create`` or ``PyModule_FromDefAndSpec``."
msgstr ""
#: c-api/module.rst:421
#: c-api/module.rst:422
msgid ""
"Add the functions from the ``NULL`` terminated *functions* array to "
"*module*. Refer to the :c:type:`PyMethodDef` documentation for details on "
@ -468,11 +470,11 @@ msgid ""
"``PyModule_FromDefAndSpec``."
msgstr ""
#: c-api/module.rst:433
#: c-api/module.rst:434
msgid "Support functions"
msgstr ""
#: c-api/module.rst:435
#: c-api/module.rst:436
msgid ""
"The module initialization function (if using single phase initialization) or "
"a function called from a module execution slot (if using multi-phase "
@ -480,40 +482,40 @@ msgid ""
"module state:"
msgstr ""
#: c-api/module.rst:442
#: c-api/module.rst:443
msgid ""
"Add an object to *module* as *name*. This is a convenience function which "
"can be used from the module's initialization function. This steals a "
"reference to *value* on success. Return ``-1`` on error, ``0`` on success."
msgstr ""
#: c-api/module.rst:448
#: c-api/module.rst:449
msgid ""
"Unlike other functions that steal references, ``PyModule_AddObject()`` only "
"decrements the reference count of *value* **on success**."
msgstr ""
#: c-api/module.rst:451
#: c-api/module.rst:452
msgid ""
"This means that its return value must be checked, and calling code must :c:"
"func:`Py_DECREF` *value* manually on error. Example usage::"
msgstr ""
#: c-api/module.rst:463
#: c-api/module.rst:464
msgid ""
"Add an integer constant to *module* as *name*. This convenience function "
"can be used from the module's initialization function. Return ``-1`` on "
"error, ``0`` on success."
msgstr ""
#: c-api/module.rst:470
#: c-api/module.rst:471
msgid ""
"Add a string constant to *module* as *name*. This convenience function can "
"be used from the module's initialization function. The string *value* must "
"be ``NULL``-terminated. Return ``-1`` on error, ``0`` on success."
msgstr ""
#: c-api/module.rst:477
#: c-api/module.rst:478
msgid ""
"Add an int constant to *module*. The name and the value are taken from "
"*macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int "
@ -521,11 +523,11 @@ msgid ""
"error, ``0`` on success."
msgstr ""
#: c-api/module.rst:485
#: c-api/module.rst:486
msgid "Add a string constant to *module*."
msgstr ""
#: c-api/module.rst:489
#: c-api/module.rst:490
msgid ""
"Add a type object to *module*. The type object is finalized by calling "
"internally :c:func:`PyType_Ready`. The name of the type object is taken from "
@ -533,25 +535,25 @@ msgid ""
"``-1`` on error, ``0`` on success."
msgstr ""
#: c-api/module.rst:499
#: c-api/module.rst:500
msgid "Module lookup"
msgstr ""
#: c-api/module.rst:501
#: c-api/module.rst:502
msgid ""
"Single-phase initialization creates singleton modules that can be looked up "
"in the context of the current interpreter. This allows the module object to "
"be retrieved later with only a reference to the module definition."
msgstr ""
#: c-api/module.rst:505
#: c-api/module.rst:506
msgid ""
"These functions will not work on modules created using multi-phase "
"initialization, since multiple such modules can be created from a single "
"definition."
msgstr ""
#: c-api/module.rst:510
#: c-api/module.rst:511
msgid ""
"Returns the module object that was created from *def* for the current "
"interpreter. This method requires that the module object has been attached "
@ -560,18 +562,18 @@ msgid ""
"to the interpreter state yet, it returns ``NULL``."
msgstr ""
#: c-api/module.rst:517
#: c-api/module.rst:518
msgid ""
"Attaches the module object passed to the function to the interpreter state. "
"This allows the module object to be accessible via :c:func:"
"`PyState_FindModule`."
msgstr ""
#: c-api/module.rst:520
#: c-api/module.rst:521
msgid "Only effective on modules created using single-phase initialization."
msgstr ""
#: c-api/module.rst:522
#: c-api/module.rst:523
msgid ""
"Python calls ``PyState_AddModule`` automatically after importing a module, "
"so it is unnecessary (but harmless) to call it from module initialization "
@ -582,15 +584,15 @@ msgid ""
"state updates)."
msgstr ""
#: c-api/module.rst:541
#: c-api/module.rst:542
msgid "The caller must hold the GIL."
msgstr ""
#: c-api/module.rst:532
#: c-api/module.rst:533
msgid "Return 0 on success or -1 on failure."
msgstr ""
#: c-api/module.rst:538
#: c-api/module.rst:539
msgid ""
"Removes the module object created from *def* from the interpreter state. "
"Return 0 on success or -1 on failure."

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -70,34 +70,35 @@ msgstr ""
#: c-api/set.rst:55
msgid ""
"Return true if *p* is a :class:`set` object or an instance of a subtype."
"Return true if *p* is a :class:`set` object or an instance of a subtype. "
"This function always succeeds."
msgstr ""
#: c-api/set.rst:59
#: c-api/set.rst:60
msgid ""
"Return true if *p* is a :class:`frozenset` object or an instance of a "
"subtype."
"subtype. This function always succeeds."
msgstr ""
#: c-api/set.rst:64
#: c-api/set.rst:65
msgid ""
"Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or "
"an instance of a subtype."
"an instance of a subtype. This function always succeeds."
msgstr ""
#: c-api/set.rst:70
#: c-api/set.rst:71
msgid ""
"Return true if *p* is a :class:`set` object or a :class:`frozenset` object "
"but not an instance of a subtype."
"but not an instance of a subtype. This function always succeeds."
msgstr ""
#: c-api/set.rst:76
#: c-api/set.rst:77
msgid ""
"Return true if *p* is a :class:`frozenset` object but not an instance of a "
"subtype."
"subtype. This function always succeeds."
msgstr ""
#: c-api/set.rst:82
#: c-api/set.rst:83
msgid ""
"Return a new :class:`set` containing objects returned by the *iterable*. "
"The *iterable* may be ``NULL`` to create a new empty set. Return the new "
@ -106,7 +107,7 @@ msgid ""
"(``c=set(s)``)."
msgstr ""
#: c-api/set.rst:91
#: c-api/set.rst:92
msgid ""
"Return a new :class:`frozenset` containing objects returned by the "
"*iterable*. The *iterable* may be ``NULL`` to create a new empty frozenset. "
@ -114,24 +115,24 @@ msgid ""
"`TypeError` if *iterable* is not actually iterable."
msgstr ""
#: c-api/set.rst:97
#: c-api/set.rst:98
msgid ""
"The following functions and macros are available for instances of :class:"
"`set` or :class:`frozenset` or instances of their subtypes."
msgstr ""
#: c-api/set.rst:105
#: c-api/set.rst:106
msgid ""
"Return the length of a :class:`set` or :class:`frozenset` object. Equivalent "
"to ``len(anyset)``. Raises a :exc:`PyExc_SystemError` if *anyset* is not a :"
"class:`set`, :class:`frozenset`, or an instance of a subtype."
msgstr ""
#: c-api/set.rst:112
#: c-api/set.rst:113
msgid "Macro form of :c:func:`PySet_Size` without error checking."
msgstr ""
#: c-api/set.rst:117
#: c-api/set.rst:118
msgid ""
"Return ``1`` if found, ``0`` if not found, and ``-1`` if an error is "
"encountered. Unlike the Python :meth:`__contains__` method, this function "
@ -141,7 +142,7 @@ msgid ""
"or an instance of a subtype."
msgstr ""
#: c-api/set.rst:126
#: c-api/set.rst:127
msgid ""
"Add *key* to a :class:`set` instance. Also works with :class:`frozenset` "
"instances (like :c:func:`PyTuple_SetItem` it can be used to fill-in the "
@ -152,13 +153,13 @@ msgid ""
"`set` or its subtype."
msgstr ""
#: c-api/set.rst:135
#: c-api/set.rst:136
msgid ""
"The following functions are available for instances of :class:`set` or its "
"subtypes but not for instances of :class:`frozenset` or its subtypes."
msgstr ""
#: c-api/set.rst:141
#: c-api/set.rst:142
msgid ""
"Return ``1`` if found and removed, ``0`` if not found (no action taken), and "
"``-1`` if an error is encountered. Does not raise :exc:`KeyError` for "
@ -169,7 +170,7 @@ msgid ""
"subtype."
msgstr ""
#: c-api/set.rst:151
#: c-api/set.rst:152
msgid ""
"Return a new reference to an arbitrary object in the *set*, and removes the "
"object from the *set*. Return ``NULL`` on failure. Raise :exc:`KeyError` "
@ -177,6 +178,6 @@ msgid ""
"of :class:`set` or its subtype."
msgstr ""
#: c-api/set.rst:159
#: c-api/set.rst:160
msgid "Empty an existing set of all elements."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-01 16:00+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -26,10 +26,12 @@ msgid ""
msgstr ""
#: c-api/slice.rst:17
msgid "Return true if *ob* is a slice object; *ob* must not be ``NULL``."
msgid ""
"Return true if *ob* is a slice object; *ob* must not be ``NULL``. This "
"function always succeeds."
msgstr ""
#: c-api/slice.rst:22
#: c-api/slice.rst:23
msgid ""
"Return a new slice object with the given values. The *start*, *stop*, and "
"*step* parameters are used as the values of the slice object attributes of "
@ -38,30 +40,30 @@ msgid ""
"the new object could not be allocated."
msgstr ""
#: c-api/slice.rst:31
#: c-api/slice.rst:32
msgid ""
"Retrieve the start, stop and step indices from the slice object *slice*, "
"assuming a sequence of length *length*. Treats indices greater than *length* "
"as errors."
msgstr ""
#: c-api/slice.rst:35
#: c-api/slice.rst:36
msgid ""
"Returns ``0`` on success and ``-1`` on error with no exception set (unless "
"one of the indices was not :const:`None` and failed to be converted to an "
"integer, in which case ``-1`` is returned with an exception set)."
msgstr ""
#: c-api/slice.rst:39
#: c-api/slice.rst:40
msgid "You probably do not want to use this function."
msgstr ""
#: c-api/slice.rst:72
#: c-api/slice.rst:73
msgid ""
"The parameter type for the *slice* parameter was ``PySliceObject*`` before."
msgstr ""
#: c-api/slice.rst:48
#: c-api/slice.rst:49
msgid ""
"Usable replacement for :c:func:`PySlice_GetIndices`. Retrieve the start, "
"stop, and step indices from the slice object *slice* assuming a sequence of "
@ -70,22 +72,22 @@ msgid ""
"normal slices."
msgstr ""
#: c-api/slice.rst:54
#: c-api/slice.rst:55
msgid "Returns ``0`` on success and ``-1`` on error with exception set."
msgstr ""
#: c-api/slice.rst:57
#: c-api/slice.rst:58
msgid ""
"This function is considered not safe for resizable sequences. Its invocation "
"should be replaced by a combination of :c:func:`PySlice_Unpack` and :c:func:"
"`PySlice_AdjustIndices` where ::"
msgstr ""
#: c-api/slice.rst:65
#: c-api/slice.rst:66
msgid "is replaced by ::"
msgstr ""
#: c-api/slice.rst:76
#: c-api/slice.rst:77
msgid ""
"If ``Py_LIMITED_API`` is not set or set to the value between ``0x03050400`` "
"and ``0x03060000`` (not including) or ``0x03060100`` or higher :c:func:`!"
@ -94,14 +96,14 @@ msgid ""
"*stop* and *step* are evaluated more than once."
msgstr ""
#: c-api/slice.rst:83
#: c-api/slice.rst:84
msgid ""
"If ``Py_LIMITED_API`` is set to the value less than ``0x03050400`` or "
"between ``0x03060000`` and ``0x03060100`` (not including) :c:func:`!"
"PySlice_GetIndicesEx` is a deprecated function."
msgstr ""
#: c-api/slice.rst:91
#: c-api/slice.rst:92
msgid ""
"Extract the start, stop and step data members from a slice object as C "
"integers. Silently reduce values larger than ``PY_SSIZE_T_MAX`` to "
@ -110,28 +112,28 @@ msgid ""
"less than ``-PY_SSIZE_T_MAX`` to ``-PY_SSIZE_T_MAX``."
msgstr ""
#: c-api/slice.rst:97
#: c-api/slice.rst:98
msgid "Return ``-1`` on error, ``0`` on success."
msgstr ""
#: c-api/slice.rst:104
#: c-api/slice.rst:105
msgid ""
"Adjust start/end slice indices assuming a sequence of the specified length. "
"Out of bounds indices are clipped in a manner consistent with the handling "
"of normal slices."
msgstr ""
#: c-api/slice.rst:108
#: c-api/slice.rst:109
msgid ""
"Return the length of the slice. Always successful. Doesn't call Python "
"code."
msgstr ""
#: c-api/slice.rst:115
#: c-api/slice.rst:116
msgid "Ellipsis Object"
msgstr ""
#: c-api/slice.rst:120
#: c-api/slice.rst:121
msgid ""
"The Python ``Ellipsis`` object. This object has no methods. It needs to be "
"treated just like any other object with respect to reference counts. Like :"

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-01 16:00+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -36,13 +36,13 @@ msgstr ""
#: c-api/tuple.rst:24
msgid ""
"Return true if *p* is a tuple object or an instance of a subtype of the "
"tuple type."
"tuple type. This function always succeeds."
msgstr ""
#: c-api/tuple.rst:30
msgid ""
"Return true if *p* is a tuple object, but not an instance of a subtype of "
"the tuple type."
"the tuple type. This function always succeeds."
msgstr ""
#: c-api/tuple.rst:36

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-12-17 16:05+0100\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2018-02-15 00:33+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -31,20 +31,22 @@ msgstr ""
#: c-api/type.rst:24
msgid ""
"Return non-zero if the object *o* is a type object, including instances of "
"types derived from the standard type object. Return 0 in all other cases."
"types derived from the standard type object. Return 0 in all other cases. "
"This function always succeeds."
msgstr ""
#: c-api/type.rst:30
#: c-api/type.rst:31
msgid ""
"Return non-zero if the object *o* is a type object, but not a subtype of the "
"standard type object. Return 0 in all other cases."
"standard type object. Return 0 in all other cases. This function always "
"succeeds."
msgstr ""
#: c-api/type.rst:36
#: c-api/type.rst:38
msgid "Clear the internal lookup cache. Return the current version tag."
msgstr ""
#: c-api/type.rst:40
#: c-api/type.rst:42
msgid ""
"Return the :c:member:`~PyTypeObject.tp_flags` member of *type*. This "
"function is primarily meant for use with `Py_LIMITED_API`; the individual "
@ -52,55 +54,55 @@ msgid ""
"c:member:`~PyTypeObject.tp_flags` itself is not part of the limited API."
msgstr ""
#: c-api/type.rst:47
#: c-api/type.rst:49
msgid "The return type is now ``unsigned long`` rather than ``long``."
msgstr ""
#: c-api/type.rst:53
#: c-api/type.rst:55
msgid ""
"Invalidate the internal lookup cache for the type and all of its subtypes. "
"This function must be called after any manual modification of the attributes "
"or base classes of the type."
msgstr ""
#: c-api/type.rst:60
#: c-api/type.rst:62
msgid ""
"Return non-zero if the type object *o* sets the feature *feature*. Type "
"features are denoted by single bit flags."
msgstr ""
#: c-api/type.rst:66
#: c-api/type.rst:68
msgid ""
"Return true if the type object includes support for the cycle detector; this "
"tests the type flag :const:`Py_TPFLAGS_HAVE_GC`."
msgstr ""
#: c-api/type.rst:72
#: c-api/type.rst:74
msgid "Return true if *a* is a subtype of *b*."
msgstr ""
#: c-api/type.rst:74
#: c-api/type.rst:76
msgid ""
"This function only checks for actual subtypes, which means that :meth:"
"`~class.__subclasscheck__` is not called on *b*. Call :c:func:"
"`PyObject_IsSubclass` to do the same check that :func:`issubclass` would do."
msgstr ""
#: c-api/type.rst:82
#: c-api/type.rst:84
msgid ""
"Generic handler for the :c:member:`~PyTypeObject.tp_alloc` slot of a type "
"object. Use Python's default memory allocation mechanism to allocate a new "
"instance and initialize all its contents to ``NULL``."
msgstr ""
#: c-api/type.rst:88
#: c-api/type.rst:90
msgid ""
"Generic handler for the :c:member:`~PyTypeObject.tp_new` slot of a type "
"object. Create a new instance using the type's :c:member:`~PyTypeObject."
"tp_alloc` slot."
msgstr ""
#: c-api/type.rst:93
#: c-api/type.rst:95
msgid ""
"Finalize a type object. This should be called on all type objects to finish "
"their initialization. This function is responsible for adding inherited "
@ -108,7 +110,7 @@ msgid ""
"and sets an exception on error."
msgstr ""
#: c-api/type.rst:100
#: c-api/type.rst:102
msgid ""
"Return the function pointer stored in the given slot. If the result is "
"``NULL``, this indicates that either the slot is ``NULL``, or that the "
@ -116,28 +118,28 @@ msgid ""
"result pointer into the appropriate function type."
msgstr ""
#: c-api/type.rst:106
#: c-api/type.rst:108
msgid ""
"See :c:member:`PyType_Slot.slot` for possible values of the *slot* argument."
msgstr ""
#: c-api/type.rst:108
#: c-api/type.rst:110
msgid "An exception is raised if *type* is not a heap type."
msgstr ""
#: c-api/type.rst:114
#: c-api/type.rst:116
msgid ""
"Return the module object associated with the given type when the type was "
"created using :c:func:`PyType_FromModuleAndSpec`."
msgstr ""
#: c-api/type.rst:135
#: c-api/type.rst:137
msgid ""
"If no module is associated with the given type, sets :py:class:`TypeError` "
"and returns ``NULL``."
msgstr ""
#: c-api/type.rst:120
#: c-api/type.rst:122
msgid ""
"This function is usually used to get the module in which a method is "
"defined. Note that in such a method, ``PyType_GetModule(Py_TYPE(self))`` may "
@ -147,49 +149,49 @@ msgid ""
"defines the method."
msgstr ""
#: c-api/type.rst:131
#: c-api/type.rst:133
msgid ""
"Return the state of the module object associated with the given type. This "
"is a shortcut for calling :c:func:`PyModule_GetState()` on the result of :c:"
"func:`PyType_GetModule`."
msgstr ""
#: c-api/type.rst:138
#: c-api/type.rst:140
msgid ""
"If the *type* has an associated module but its state is ``NULL``, returns "
"``NULL`` without setting an exception."
msgstr ""
#: c-api/type.rst:145
#: c-api/type.rst:147
msgid "Creating Heap-Allocated Types"
msgstr ""
#: c-api/type.rst:147
#: c-api/type.rst:149
msgid ""
"The following functions and structs are used to create :ref:`heap types "
"<heap-types>`."
msgstr ""
#: c-api/type.rst:152
#: c-api/type.rst:154
msgid ""
"Creates and returns a heap type object from the *spec* (:const:"
"`Py_TPFLAGS_HEAPTYPE`)."
msgstr ""
#: c-api/type.rst:155
#: c-api/type.rst:157
msgid ""
"If *bases* is a tuple, the created heap type contains all types contained in "
"it as base types."
msgstr ""
#: c-api/type.rst:158
#: c-api/type.rst:160
msgid ""
"If *bases* is ``NULL``, the *Py_tp_bases* slot is used instead. If that also "
"is ``NULL``, the *Py_tp_base* slot is used instead. If that also is "
"``NULL``, the new type derives from :class:`object`."
msgstr ""
#: c-api/type.rst:162
#: c-api/type.rst:164
msgid ""
"The *module* argument can be used to record the module in which the new "
"class is defined. It must be a module object or ``NULL``. If not ``NULL``, "
@ -198,59 +200,59 @@ msgid ""
"subclasses; it must be specified for each class individually."
msgstr ""
#: c-api/type.rst:169
#: c-api/type.rst:171
msgid "This function calls :c:func:`PyType_Ready` on the new type."
msgstr ""
#: c-api/type.rst:175
#: c-api/type.rst:177
msgid "Equivalent to ``PyType_FromModuleAndSpec(NULL, spec, bases)``."
msgstr ""
#: c-api/type.rst:181
#: c-api/type.rst:183
msgid "Equivalent to ``PyType_FromSpecWithBases(spec, NULL)``."
msgstr ""
#: c-api/type.rst:185
#: c-api/type.rst:187
msgid "Structure defining a type's behavior."
msgstr ""
#: c-api/type.rst:189
#: c-api/type.rst:191
msgid "Name of the type, used to set :c:member:`PyTypeObject.tp_name`."
msgstr ""
#: c-api/type.rst:194
#: c-api/type.rst:196
msgid ""
"Size of the instance in bytes, used to set :c:member:`PyTypeObject."
"tp_basicsize` and :c:member:`PyTypeObject.tp_itemsize`."
msgstr ""
#: c-api/type.rst:200
#: c-api/type.rst:202
msgid "Type flags, used to set :c:member:`PyTypeObject.tp_flags`."
msgstr ""
#: c-api/type.rst:202
#: c-api/type.rst:204
msgid ""
"If the ``Py_TPFLAGS_HEAPTYPE`` flag is not set, :c:func:"
"`PyType_FromSpecWithBases` sets it automatically."
msgstr ""
#: c-api/type.rst:207
#: c-api/type.rst:209
msgid ""
"Array of :c:type:`PyType_Slot` structures. Terminated by the special slot "
"value ``{0, NULL}``."
msgstr ""
#: c-api/type.rst:212
#: c-api/type.rst:214
msgid ""
"Structure defining optional functionality of a type, containing a slot ID "
"and a value pointer."
msgstr ""
#: c-api/type.rst:217
#: c-api/type.rst:219
msgid "A slot ID."
msgstr ""
#: c-api/type.rst:219
#: c-api/type.rst:221
msgid ""
"Slot IDs are named like the field names of the structures :c:type:"
"`PyTypeObject`, :c:type:`PyNumberMethods`, :c:type:`PySequenceMethods`, :c:"
@ -258,97 +260,97 @@ msgid ""
"prefix. For example, use:"
msgstr ""
#: c-api/type.rst:225
#: c-api/type.rst:227
msgid "``Py_tp_dealloc`` to set :c:member:`PyTypeObject.tp_dealloc`"
msgstr ""
#: c-api/type.rst:226
#: c-api/type.rst:228
msgid "``Py_nb_add`` to set :c:member:`PyNumberMethods.nb_add`"
msgstr ""
#: c-api/type.rst:227
#: c-api/type.rst:229
msgid "``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`"
msgstr ""
#: c-api/type.rst:229
#: c-api/type.rst:231
msgid ""
"The following fields cannot be set at all using :c:type:`PyType_Spec` and :c:"
"type:`PyType_Slot`:"
msgstr ""
#: c-api/type.rst:232
#: c-api/type.rst:234
msgid ":c:member:`~PyTypeObject.tp_dict`"
msgstr ""
#: c-api/type.rst:233
#: c-api/type.rst:235
msgid ":c:member:`~PyTypeObject.tp_mro`"
msgstr ""
#: c-api/type.rst:234
#: c-api/type.rst:236
msgid ":c:member:`~PyTypeObject.tp_cache`"
msgstr ""
#: c-api/type.rst:235
#: c-api/type.rst:237
msgid ":c:member:`~PyTypeObject.tp_subclasses`"
msgstr ""
#: c-api/type.rst:236
#: c-api/type.rst:238
msgid ":c:member:`~PyTypeObject.tp_weaklist`"
msgstr ""
#: c-api/type.rst:237
#: c-api/type.rst:239
msgid ":c:member:`~PyTypeObject.tp_vectorcall`"
msgstr ""
#: c-api/type.rst:238
#: c-api/type.rst:240
msgid ""
":c:member:`~PyTypeObject.tp_weaklistoffset` (see :ref:`PyMemberDef "
"<pymemberdef-offsets>`)"
msgstr ""
#: c-api/type.rst:240
#: c-api/type.rst:242
msgid ""
":c:member:`~PyTypeObject.tp_dictoffset` (see :ref:`PyMemberDef <pymemberdef-"
"offsets>`)"
msgstr ""
#: c-api/type.rst:242
#: c-api/type.rst:244
msgid ""
":c:member:`~PyTypeObject.tp_vectorcall_offset` (see :ref:`PyMemberDef "
"<pymemberdef-offsets>`)"
msgstr ""
#: c-api/type.rst:245
#: c-api/type.rst:247
msgid ""
"The following fields cannot be set using :c:type:`PyType_Spec` and :c:type:"
"`PyType_Slot` under the limited API:"
msgstr ""
#: c-api/type.rst:248
#: c-api/type.rst:250
msgid ":c:member:`~PyBufferProcs.bf_getbuffer`"
msgstr ""
#: c-api/type.rst:249
#: c-api/type.rst:251
msgid ":c:member:`~PyBufferProcs.bf_releasebuffer`"
msgstr ""
#: c-api/type.rst:251
#: c-api/type.rst:253
msgid ""
"Setting :c:data:`Py_tp_bases` or :c:data:`Py_tp_base` may be problematic on "
"some platforms. To avoid issues, use the *bases* argument of :py:func:"
"`PyType_FromSpecWithBases` instead."
msgstr ""
#: c-api/type.rst:258
#: c-api/type.rst:260
msgid "Slots in :c:type:`PyBufferProcs` in may be set in the unlimited API."
msgstr ""
#: c-api/type.rst:262
#: c-api/type.rst:264
msgid ""
"The desired value of the slot. In most cases, this is a pointer to a "
"function."
msgstr ""
#: c-api/type.rst:265
#: c-api/type.rst:267
msgid "May not be ``NULL``."
msgstr ""

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-01 16:00+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2018-10-04 12:27+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -120,13 +120,13 @@ msgstr ""
#: c-api/unicode.rst:93
msgid ""
"Return true if the object *o* is a Unicode object or an instance of a "
"Unicode subtype."
"Unicode subtype. This function always succeeds."
msgstr ""
#: c-api/unicode.rst:99
msgid ""
"Return true if the object *o* is a Unicode object, but not an instance of a "
"subtype."
"subtype. This function always succeeds."
msgstr ""
#: c-api/unicode.rst:105

View file

@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"POT-Creation-Date: 2021-01-27 19:26+0100\n"
"PO-Revision-Date: 2019-03-29 14:17+0100\n"
"Last-Translator: Andy Kwok <andy.kwok.work@gmail.com>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
@ -32,18 +32,24 @@ msgstr ""
"second agit autant que possible comme un mandataire vers l'objet original."
#: c-api/weakref.rst:16
msgid "Return true if *ob* is either a reference or proxy object."
#, fuzzy
msgid ""
"Return true if *ob* is either a reference or proxy object. This function "
"always succeeds."
msgstr "Renvoie vrai si *ob* est soit une référence, soit un objet proxy."
#: c-api/weakref.rst:21
msgid "Return true if *ob* is a reference object."
#: c-api/weakref.rst:22
#, fuzzy
msgid ""
"Return true if *ob* is a reference object. This function always succeeds."
msgstr "Retourne vrai si *ob* est un objet référence."
#: c-api/weakref.rst:26
msgid "Return true if *ob* is a proxy object."
#: c-api/weakref.rst:27
#, fuzzy
msgid "Return true if *ob* is a proxy object. This function always succeeds."
msgstr "Retourne vrai si *ob* est un objet proxy"
#: c-api/weakref.rst:31
#: c-api/weakref.rst:32
#, fuzzy
msgid ""
"Return a weak reference object for the object *ob*. This will always return "
@ -66,7 +72,7 @@ msgstr ""
"ou si *callback* n'est pas appelable, ``None``` ou *NULL*, ceci retourne "
"*NULL* et lève une :exc:`TypeError`."
#: c-api/weakref.rst:43
#: c-api/weakref.rst:44
#, fuzzy
msgid ""
"Return a weak reference proxy object for the object *ob*. This will always "
@ -88,7 +94,7 @@ msgstr ""
"si *callback* n'est pas appelable, ``None``` ou *NULL*, ceci renvoie *NULL* "
"et lève une :exc:`TypeError`."
#: c-api/weakref.rst:55
#: c-api/weakref.rst:56
msgid ""
"Return the referenced object from a weak reference, *ref*. If the referent "
"is no longer live, returns :const:`Py_None`."
@ -96,7 +102,7 @@ msgstr ""
"Retourne l'objet référencé à partir d'une référence faible, *ref*. Si le "
"référence n'existe plus, alors l'objet renvoie :const:`Py_None`."
#: c-api/weakref.rst:60
#: c-api/weakref.rst:61
msgid ""
"This function returns a **borrowed reference** to the referenced object. "
"This means that you should always call :c:func:`Py_INCREF` on the object "
@ -107,7 +113,7 @@ msgstr ""
"sauf si vous savez qu'il ne peut pas être détruit tant que vous l'utilisez "
"encore."
#: c-api/weakref.rst:68
#: c-api/weakref.rst:69
msgid ""
"Similar to :c:func:`PyWeakref_GetObject`, but implemented as a macro that "
"does no error checking."