FIX: Some errors in syntax or references.

This commit is contained in:
Julien Palard 2016-04-26 22:57:51 +02:00
parent 54eabfbda9
commit a3b33d2bb5
4 changed files with 49 additions and 48 deletions

View File

@ -291,12 +291,12 @@ msgid ""
"`PyBuffer_Release` after you have finished processing the data (or in any "
"early abort case)."
msgstr ""
"Néanmoins, quand une structure :ctype:`Py_buffer` est en cours de "
"Néanmoins, quand une structure :c:type:`Py_buffer` est en cours de "
"remplissage, le buffer sous-jacent est verrouillé pour permettre à "
"l'appelant d'utiliser le buffer par la suite, même à l'intérieur d'un bloc :"
"ctype:`Py_BEGIN_ALLOW_THREADS`. Ceci sans le risque pour les données "
"c:type:`Py_BEGIN_ALLOW_THREADS`. Ceci sans le risque pour les données "
"mutables de voir leur taille changée ou d'être supprimées. En conséquence, "
"**il vous appartient d'appeler** :cfunc:`PyBuffer_Release` après que vous "
"**il vous appartient d'appeler** :c:func:`PyBuffer_Release` après que vous "
"ayez terminé de traiter les données (ou après une interruption prémataturée "
"du traitement de ces données)."
@ -315,13 +315,13 @@ msgid ""
"define :c:macro:`PY_SSIZE_T_CLEAN`."
msgstr ""
"Pour toutes les variantes de formats ``#`` (``s#``, ``y#``, etc), le type de "
"l'argument *length* (int ou :ctype:`Py_ssize_t`) est contrôlé en définissant "
"la macro :cmacro:`PY_SSIZE_T_CLEAN` avant d'inclure le fichier :file:`Python."
"h`. Si la macro est définie, la longueur est de type :ctype:`Py_ssize_t` au "
"lieu d'être de type :ctype:`int`. Ce comportement changera dans une future "
"version de Python, qui supportera seulement :ctype:`Py_ssize_t` a la place "
"de :ctype:`int`. Il est préférable de toujours définir :cmacro:"
"`PY_SSIZE_T_CLEAN`."
"l'argument *length* (int ou :c:type:`Py_ssize_t`) est contrôlé en "
"définissant la macro :c:macro:`PY_SSIZE_T_CLEAN` avant d'inclure le fichier :"
"file:`Python.h`. Si la macro est définie, la longueur est de type :c:type:"
"`Py_ssize_t` au lieu d'être de type :c:type:`int`. Ce comportement changera "
"dans une future version de Python, qui supportera seulement :c:type:"
"`Py_ssize_t` a la place de :c:type:`int`. Il est préférable de toujours "
"définir :c:macro:`PY_SSIZE_T_CLEAN`."
#: ../Doc/c-api/arg.rst:72
msgid "``s`` (:class:`str`) [const char \\*]"
@ -515,7 +515,7 @@ msgid ""
"type:`Py_UNICODE` pointer is set to *NULL*."
msgstr ""
"Comme ``u``, mais l'objet Python peut aussi être ``None``, auquel cas le "
"pointeur :ctype:`Py_UNICODE` vaut *NULL*."
"pointeur :c:type:`Py_UNICODE` vaut *NULL*."
#: ../Doc/c-api/arg.rst:148
msgid "``Z#`` (:class:`str` or ``None``) [Py_UNICODE \\*, int]"
@ -527,7 +527,7 @@ msgid ""
"c:type:`Py_UNICODE` pointer is set to *NULL*."
msgstr ""
"Comme ``u#``, mais l'objet Python peut également être ``None``, auquel cas "
"le pointeur :ctype:`Py_UNICODE` vaut *NULL*."
"le pointeur :c:type:`Py_UNICODE` vaut *NULL*."
#: ../Doc/c-api/arg.rst:153
msgid "``U`` (:class:`str`) [PyObject \\*]"
@ -679,7 +679,7 @@ msgid ""
"c:type:`unsigned char`."
msgstr ""
"Convertit un entier Python positif ou nul en un unsigned tiny int, stocké "
"dans un :ctype:`unsigned char`C."
"dans un :c:type:`unsigned char` C."
#: ../Doc/c-api/arg.rst:229 ../Doc/c-api/arg.rst:563
msgid "``B`` (:class:`int`) [unsigned char]"
@ -691,7 +691,7 @@ msgid ""
"a C :c:type:`unsigned char`."
msgstr ""
"Convertit un entier Python en un tiny int sans vérifier le débordement, "
"stocké dans un :ctype:`unsigned char` C."
"stocké dans un :c:type:`unsigned char` C."
#: ../Doc/c-api/arg.rst:232 ../Doc/c-api/arg.rst:557
msgid "``h`` (:class:`int`) [short int]"
@ -699,7 +699,7 @@ msgstr "``h`` (:class:`int`) [short int]"
#: ../Doc/c-api/arg.rst:232
msgid "Convert a Python integer to a C :c:type:`short int`."
msgstr "Convertit un entier Python en un :ctype:`short int` C."
msgstr "Convertit un entier Python en un :c:type:`short int` C."
#: ../Doc/c-api/arg.rst:236 ../Doc/c-api/arg.rst:566
msgid "``H`` (:class:`int`) [unsigned short int]"
@ -710,7 +710,7 @@ msgid ""
"Convert a Python integer to a C :c:type:`unsigned short int`, without "
"overflow checking."
msgstr ""
"Convertit un entier Python en un :ctype:`unsigned short int` C, sans "
"Convertit un entier Python en un :c:type:`unsigned short int` C, sans "
"contrôle de débordement."
#: ../Doc/c-api/arg.rst:239 ../Doc/c-api/arg.rst:551
@ -719,7 +719,7 @@ msgstr "``i`` (:class:`int`) [int]"
#: ../Doc/c-api/arg.rst:239
msgid "Convert a Python integer to a plain C :c:type:`int`."
msgstr "Convertit un entier Python en un :ctype:`int` C."
msgstr "Convertit un entier Python en un :c:type:`int` C."
#: ../Doc/c-api/arg.rst:243 ../Doc/c-api/arg.rst:569
msgid "``I`` (:class:`int`) [unsigned int]"
@ -730,7 +730,7 @@ msgid ""
"Convert a Python integer to a C :c:type:`unsigned int`, without overflow "
"checking."
msgstr ""
"Convertit un entier Python en un :ctype:`unsigned int` C, sans contrôle de "
"Convertit un entier Python en un :c:type:`unsigned int` C, sans contrôle de "
"le débordement."
#: ../Doc/c-api/arg.rst:246 ../Doc/c-api/arg.rst:560
@ -739,7 +739,7 @@ msgstr "``l`` (:class:`int`) [long int]"
#: ../Doc/c-api/arg.rst:246
msgid "Convert a Python integer to a C :c:type:`long int`."
msgstr "Convertit un entier Python en un :ctype:`long int`."
msgstr "Convertit un entier Python en un :c:type:`long int`."
#: ../Doc/c-api/arg.rst:250 ../Doc/c-api/arg.rst:572
msgid "``k`` (:class:`int`) [unsigned long]"
@ -750,7 +750,7 @@ msgid ""
"Convert a Python integer to a C :c:type:`unsigned long` without overflow "
"checking."
msgstr ""
"Convertit un entier Python en un :ctype:`unsigned long` C sans en vérifier "
"Convertit un entier Python en un :c:type:`unsigned long` C sans en vérifier "
"le débordement."
#: ../Doc/c-api/arg.rst:255 ../Doc/c-api/arg.rst:577
@ -763,9 +763,9 @@ msgid ""
"available on platforms that support :c:type:`long long` (or :c:type:`_int64` "
"on Windows)."
msgstr ""
"Convertit un entier Python en un :ctype:`long long` C. Ce format est "
"uniquement disponible sur les plates-formes qui prennent en charge :ctype:"
"`long long` (ou :ctype:`_int64` sous Windows)."
"Convertit un entier Python en un :c:type:`long long` C. Ce format est "
"uniquement disponible sur les plates-formes qui prennent en charge :c:type:"
"`long long` (ou :c:type:`_int64` sous Windows)."
#: ../Doc/c-api/arg.rst:260 ../Doc/c-api/arg.rst:582
msgid "``K`` (:class:`int`) [unsigned PY_LONG_LONG]"
@ -777,9 +777,9 @@ msgid ""
"overflow checking. This format is only available on platforms that support :"
"c:type:`unsigned long long` (or :c:type:`unsigned _int64` on Windows)."
msgstr ""
"Convertit un entier Python en un :ctype:`unsigned long long` C sans en "
"Convertit un entier Python en un :c:type:`unsigned long long` C sans en "
"vérifier le débordement. Ce format est uniquement disponible sur les plates-"
"formes qui prennent en charge :ctype:`unsigned long long` (ou :ctype:"
"formes qui prennent en charge :c:type:`unsigned long long` (ou :c:type:"
"`unsigned _int64` sous Windows)."
#: ../Doc/c-api/arg.rst:263 ../Doc/c-api/arg.rst:585
@ -788,7 +788,7 @@ msgstr "``n`` (:class:`int`) [Py_ssize_t]"
#: ../Doc/c-api/arg.rst:263
msgid "Convert a Python integer to a C :c:type:`Py_ssize_t`."
msgstr "Convertit un entier Python en un :ctype:`short int` C."
msgstr "Convertit un entier Python en un :c:type:`short int` C."
#: ../Doc/c-api/arg.rst:270
msgid "``c`` (:class:`bytes` or :class:`bytearray` of length 1) [char]"
@ -799,8 +799,8 @@ msgid ""
"Convert a Python byte, represented as a :class:`bytes` or :class:`bytearray` "
"object of length 1, to a C :c:type:`char`."
msgstr ""
"Convertit un octet Python, représenté comme un objet :class:`bytes` de "
"longueur 1, en un :ctype:`char` C."
"Convertit un octet Python, représenté comme un objet :class:`bytes` ou :"
"class:`bytearray` de longueur 1, en un :c:type:`char` C."
#: ../Doc/c-api/arg.rst:269
msgid "Allow :class:`bytearray` objects."
@ -816,7 +816,7 @@ msgid ""
"1, to a C :c:type:`int`."
msgstr ""
"Convertit un caractère Python, représenté comme un objet :class:`str` de "
"longueur 1, en un :ctype:`int` C."
"longueur 1, en un :c:type:`int` C."
#: ../Doc/c-api/arg.rst:277 ../Doc/c-api/arg.rst:599
msgid "``f`` (:class:`float`) [float]"
@ -824,7 +824,7 @@ msgstr "``f`` (:class:`float`) [float]"
#: ../Doc/c-api/arg.rst:277
msgid "Convert a Python floating point number to a C :c:type:`float`."
msgstr "Convertit un nombre flottant Python vers un :ctype:`float`."
msgstr "Convertit un nombre flottant Python vers un :c:type:`float`."
#: ../Doc/c-api/arg.rst:280 ../Doc/c-api/arg.rst:596
msgid "``d`` (:class:`float`) [double]"
@ -832,7 +832,7 @@ msgstr "``d`` (:class:`float`) [double]"
#: ../Doc/c-api/arg.rst:280
msgid "Convert a Python floating point number to a C :c:type:`double`."
msgstr "Convertit un nombre flottant Python vers un :ctype:`double` C."
msgstr "Convertit un nombre flottant Python vers un :c:type:`double` C."
#: ../Doc/c-api/arg.rst:283
msgid "``D`` (:class:`complex`) [Py_complex]"
@ -841,7 +841,8 @@ msgstr "``D`` (:class:`complex`) [Py_complex]"
#: ../Doc/c-api/arg.rst:283
msgid "Convert a Python complex number to a C :c:type:`Py_complex` structure."
msgstr ""
"Convertit un nombre complexe Python vers une structure :ctype:`Py_complex` C."
"Convertit un nombre complexe Python vers une structure :c:type:`Py_complex` "
"C."
#: ../Doc/c-api/arg.rst:286
msgid "Other objects"
@ -1264,7 +1265,7 @@ msgstr ""
#: ../Doc/c-api/arg.rst:560
msgid "Convert a C :c:type:`long int` to a Python integer object."
msgstr "Convertit un :ctype:`long int` en un int Python."
msgstr "Convertit un :c:type:`long int` en un int Python."
#: ../Doc/c-api/arg.rst:563
msgid "Convert a C :c:type:`unsigned char` to a Python integer object."

View File

@ -205,7 +205,7 @@ msgstr "Une liste des extensions Python à construire"
#: ../Doc/distutils/apiref.rst:77
msgid "a list of instances of :class:`distutils.core.Extension`"
msgstr "une liste d'instances de :class:`distutils.core.Extension'"
msgstr "une liste d'instances de :class:`distutils.core.Extension`"
#: ../Doc/distutils/apiref.rst:80
msgid "*classifiers*"

8
faq.po
View File

@ -4577,12 +4577,12 @@ msgid ""
"format(144)`` yields ``'0144'`` and ``\"{:.3f}\".format(1.0/3.0)`` yields "
"``'0.333'``."
msgstr ""
"Pour convertir, par exemple, le nombre 144 en la chaîne '144 ', utilisez la "
"Pour convertir, par exemple, le nombre 144 en la chaîne '144', utilisez la "
"fonction native :func:`str`. Si vous voulez une représentation hexadécimale "
"ou octale, utilisez les fonctions :func:`hex` ou :func:`oct`. Pour une "
"meilleure la mise en forme, voir la section :ref:`formatstrings`, par "
"exemple, ``\"{:04d) \".format (144)`` donne ``'0144'`` et ``\"{:.3f)\"."
"format (1.0/3.0) donne ``'0,333' ``."
"format(1.0/3.0)`` donne ``'0,333'``."
#: ../Doc/faq/programming.rst:847
msgid "How do I modify a string in place?"
@ -4982,8 +4982,8 @@ msgid ""
"`hashable`) this is often faster ::"
msgstr ""
"Si tous les éléments de la liste peuvent être utilisés comme des clés de "
"dictionnaire (càd, qu'elles sont toutes hachables) ceci est souvent plus "
"rapide : ::"
"dictionnaire (càd, qu'elles sont toutes :term:`hachables <hashable>`) ceci "
"est souvent plus rapide : ::"
#: ../Doc/faq/programming.rst:1137
msgid ""

View File

@ -50386,9 +50386,9 @@ msgid ""
"extract a comparison key from each input element. The default value is "
"``None`` (compare the elements directly)."
msgstr ""
"*key* spécifie une fonction d'un argument utilisé pour extraire une clef de "
"comparaison de chaque élément de la liste. La valeur par défaut est ``None`` "
"(compare les éléments directement)."
"*key* spécifie une :term:`key function` d'un argument utilisée pour extraire "
"une clef de comparaison de chaque élément de la liste. La valeur par défaut "
"est ``None`` (compare les éléments directement)."
#: ../Doc/library/heapq.rst:101
msgid ""
@ -60451,13 +60451,13 @@ msgid ""
"terminated by the given string, and the line ending is returned to the "
"caller untranslated."
msgstr ""
"Lors de la lecture, si *newline* est ``None``, le mode *universal newlines* "
"est activé. Les lignes lues peuvent terminer par ``'\\n'``, ``'\\r'``, ou "
"``'\\r\\n'``, qui sont remplacés par ``'\\n'``, avant d'être données à "
"l'appelant. S'il vaut ``''``, le mode *universal newline* est activé mais "
"les fin de lignes ne sont pas remplacés. S'il a n'importe quel autre valeur "
"autorisée, les lignes sont seulement terminées par la chaîne donnée, qui est "
"rendue tel qu'elle."
"Lors de la lecture, si *newline* est ``None``, le mode :term:`universal "
"newlines` est activé. Les lignes lues peuvent terminer par ``'\\n'``, "
"``'\\r'``, ou ``'\\r\\n'``, qui sont remplacés par ``'\\n'``, avant d'être "
"données à l'appelant. S'il vaut ``''``, le mode *universal newline* est "
"activé mais les fin de lignes ne sont pas remplacés. S'il a n'importe quel "
"autre valeur autorisée, les lignes sont seulement terminées par la chaîne "
"donnée, qui est rendue tel qu'elle."
#: ../Doc/library/io.rst:863
msgid ""