Skip to content

Commit a3b33d2

Browse files
committed
FIX: Some errors in syntax or references.
1 parent 54eabfb commit a3b33d2

File tree

4 files changed

+49
-48
lines changed

4 files changed

+49
-48
lines changed

c-api.po

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ msgid ""
291291
"`PyBuffer_Release` after you have finished processing the data (or in any "
292292
"early abort case)."
293293
msgstr ""
294-
"Néanmoins, quand une structure :ctype:`Py_buffer` est en cours de "
294+
"Néanmoins, quand une structure :c:type:`Py_buffer` est en cours de "
295295
"remplissage, le buffer sous-jacent est verrouillé pour permettre à "
296296
"l'appelant d'utiliser le buffer par la suite, même à l'intérieur d'un bloc :"
297-
"ctype:`Py_BEGIN_ALLOW_THREADS`. Ceci sans le risque pour les données "
297+
"c:type:`Py_BEGIN_ALLOW_THREADS`. Ceci sans le risque pour les données "
298298
"mutables de voir leur taille changée ou d'être supprimées. En conséquence, "
299-
"**il vous appartient d'appeler** :cfunc:`PyBuffer_Release` après que vous "
299+
"**il vous appartient d'appeler** :c:func:`PyBuffer_Release` après que vous "
300300
"ayez terminé de traiter les données (ou après une interruption prémataturée "
301301
"du traitement de ces données)."
302302

@@ -315,13 +315,13 @@ msgid ""
315315
"define :c:macro:`PY_SSIZE_T_CLEAN`."
316316
msgstr ""
317317
"Pour toutes les variantes de formats ``#`` (``s#``, ``y#``, etc), le type de "
318-
"l'argument *length* (int ou :ctype:`Py_ssize_t`) est contrôlé en définissant "
319-
"la macro :cmacro:`PY_SSIZE_T_CLEAN` avant d'inclure le fichier :file:`Python."
320-
"h`. Si la macro est définie, la longueur est de type :ctype:`Py_ssize_t` au "
321-
"lieu d'être de type :ctype:`int`. Ce comportement changera dans une future "
322-
"version de Python, qui supportera seulement :ctype:`Py_ssize_t` a la place "
323-
"de :ctype:`int`. Il est préférable de toujours définir :cmacro:"
324-
"`PY_SSIZE_T_CLEAN`."
318+
"l'argument *length* (int ou :c:type:`Py_ssize_t`) est contrôlé en "
319+
"définissant la macro :c:macro:`PY_SSIZE_T_CLEAN` avant d'inclure le fichier :"
320+
"file:`Python.h`. Si la macro est définie, la longueur est de type :c:type:"
321+
"`Py_ssize_t` au lieu d'être de type :c:type:`int`. Ce comportement changera "
322+
"dans une future version de Python, qui supportera seulement :c:type:"
323+
"`Py_ssize_t` a la place de :c:type:`int`. Il est préférable de toujours "
324+
"définir :c:macro:`PY_SSIZE_T_CLEAN`."
325325

326326
#: ../Doc/c-api/arg.rst:72
327327
msgid "``s`` (:class:`str`) [const char \\*]"
@@ -515,7 +515,7 @@ msgid ""
515515
"type:`Py_UNICODE` pointer is set to *NULL*."
516516
msgstr ""
517517
"Comme ``u``, mais l'objet Python peut aussi être ``None``, auquel cas le "
518-
"pointeur :ctype:`Py_UNICODE` vaut *NULL*."
518+
"pointeur :c:type:`Py_UNICODE` vaut *NULL*."
519519

520520
#: ../Doc/c-api/arg.rst:148
521521
msgid "``Z#`` (:class:`str` or ``None``) [Py_UNICODE \\*, int]"
@@ -527,7 +527,7 @@ msgid ""
527527
"c:type:`Py_UNICODE` pointer is set to *NULL*."
528528
msgstr ""
529529
"Comme ``u#``, mais l'objet Python peut également être ``None``, auquel cas "
530-
"le pointeur :ctype:`Py_UNICODE` vaut *NULL*."
530+
"le pointeur :c:type:`Py_UNICODE` vaut *NULL*."
531531

532532
#: ../Doc/c-api/arg.rst:153
533533
msgid "``U`` (:class:`str`) [PyObject \\*]"
@@ -679,7 +679,7 @@ msgid ""
679679
"c:type:`unsigned char`."
680680
msgstr ""
681681
"Convertit un entier Python positif ou nul en un unsigned tiny int, stocké "
682-
"dans un :ctype:`unsigned char`C."
682+
"dans un :c:type:`unsigned char` C."
683683

684684
#: ../Doc/c-api/arg.rst:229 ../Doc/c-api/arg.rst:563
685685
msgid "``B`` (:class:`int`) [unsigned char]"
@@ -691,15 +691,15 @@ msgid ""
691691
"a C :c:type:`unsigned char`."
692692
msgstr ""
693693
"Convertit un entier Python en un tiny int sans vérifier le débordement, "
694-
"stocké dans un :ctype:`unsigned char` C."
694+
"stocké dans un :c:type:`unsigned char` C."
695695

696696
#: ../Doc/c-api/arg.rst:232 ../Doc/c-api/arg.rst:557
697697
msgid "``h`` (:class:`int`) [short int]"
698698
msgstr "``h`` (:class:`int`) [short int]"
699699

700700
#: ../Doc/c-api/arg.rst:232
701701
msgid "Convert a Python integer to a C :c:type:`short int`."
702-
msgstr "Convertit un entier Python en un :ctype:`short int` C."
702+
msgstr "Convertit un entier Python en un :c:type:`short int` C."
703703

704704
#: ../Doc/c-api/arg.rst:236 ../Doc/c-api/arg.rst:566
705705
msgid "``H`` (:class:`int`) [unsigned short int]"
@@ -710,7 +710,7 @@ msgid ""
710710
"Convert a Python integer to a C :c:type:`unsigned short int`, without "
711711
"overflow checking."
712712
msgstr ""
713-
"Convertit un entier Python en un :ctype:`unsigned short int` C, sans "
713+
"Convertit un entier Python en un :c:type:`unsigned short int` C, sans "
714714
"contrôle de débordement."
715715

716716
#: ../Doc/c-api/arg.rst:239 ../Doc/c-api/arg.rst:551
@@ -719,7 +719,7 @@ msgstr "``i`` (:class:`int`) [int]"
719719

720720
#: ../Doc/c-api/arg.rst:239
721721
msgid "Convert a Python integer to a plain C :c:type:`int`."
722-
msgstr "Convertit un entier Python en un :ctype:`int` C."
722+
msgstr "Convertit un entier Python en un :c:type:`int` C."
723723

724724
#: ../Doc/c-api/arg.rst:243 ../Doc/c-api/arg.rst:569
725725
msgid "``I`` (:class:`int`) [unsigned int]"
@@ -730,7 +730,7 @@ msgid ""
730730
"Convert a Python integer to a C :c:type:`unsigned int`, without overflow "
731731
"checking."
732732
msgstr ""
733-
"Convertit un entier Python en un :ctype:`unsigned int` C, sans contrôle de "
733+
"Convertit un entier Python en un :c:type:`unsigned int` C, sans contrôle de "
734734
"le débordement."
735735

736736
#: ../Doc/c-api/arg.rst:246 ../Doc/c-api/arg.rst:560
@@ -739,7 +739,7 @@ msgstr "``l`` (:class:`int`) [long int]"
739739

740740
#: ../Doc/c-api/arg.rst:246
741741
msgid "Convert a Python integer to a C :c:type:`long int`."
742-
msgstr "Convertit un entier Python en un :ctype:`long int`."
742+
msgstr "Convertit un entier Python en un :c:type:`long int`."
743743

744744
#: ../Doc/c-api/arg.rst:250 ../Doc/c-api/arg.rst:572
745745
msgid "``k`` (:class:`int`) [unsigned long]"
@@ -750,7 +750,7 @@ msgid ""
750750
"Convert a Python integer to a C :c:type:`unsigned long` without overflow "
751751
"checking."
752752
msgstr ""
753-
"Convertit un entier Python en un :ctype:`unsigned long` C sans en vérifier "
753+
"Convertit un entier Python en un :c:type:`unsigned long` C sans en vérifier "
754754
"le débordement."
755755

756756
#: ../Doc/c-api/arg.rst:255 ../Doc/c-api/arg.rst:577
@@ -763,9 +763,9 @@ msgid ""
763763
"available on platforms that support :c:type:`long long` (or :c:type:`_int64` "
764764
"on Windows)."
765765
msgstr ""
766-
"Convertit un entier Python en un :ctype:`long long` C. Ce format est "
767-
"uniquement disponible sur les plates-formes qui prennent en charge :ctype:"
768-
"`long long` (ou :ctype:`_int64` sous Windows)."
766+
"Convertit un entier Python en un :c:type:`long long` C. Ce format est "
767+
"uniquement disponible sur les plates-formes qui prennent en charge :c:type:"
768+
"`long long` (ou :c:type:`_int64` sous Windows)."
769769

770770
#: ../Doc/c-api/arg.rst:260 ../Doc/c-api/arg.rst:582
771771
msgid "``K`` (:class:`int`) [unsigned PY_LONG_LONG]"
@@ -777,9 +777,9 @@ msgid ""
777777
"overflow checking. This format is only available on platforms that support :"
778778
"c:type:`unsigned long long` (or :c:type:`unsigned _int64` on Windows)."
779779
msgstr ""
780-
"Convertit un entier Python en un :ctype:`unsigned long long` C sans en "
780+
"Convertit un entier Python en un :c:type:`unsigned long long` C sans en "
781781
"vérifier le débordement. Ce format est uniquement disponible sur les plates-"
782-
"formes qui prennent en charge :ctype:`unsigned long long` (ou :ctype:"
782+
"formes qui prennent en charge :c:type:`unsigned long long` (ou :c:type:"
783783
"`unsigned _int64` sous Windows)."
784784

785785
#: ../Doc/c-api/arg.rst:263 ../Doc/c-api/arg.rst:585
@@ -788,7 +788,7 @@ msgstr "``n`` (:class:`int`) [Py_ssize_t]"
788788

789789
#: ../Doc/c-api/arg.rst:263
790790
msgid "Convert a Python integer to a C :c:type:`Py_ssize_t`."
791-
msgstr "Convertit un entier Python en un :ctype:`short int` C."
791+
msgstr "Convertit un entier Python en un :c:type:`short int` C."
792792

793793
#: ../Doc/c-api/arg.rst:270
794794
msgid "``c`` (:class:`bytes` or :class:`bytearray` of length 1) [char]"
@@ -799,8 +799,8 @@ msgid ""
799799
"Convert a Python byte, represented as a :class:`bytes` or :class:`bytearray` "
800800
"object of length 1, to a C :c:type:`char`."
801801
msgstr ""
802-
"Convertit un octet Python, représenté comme un objet :class:`bytes` de "
803-
"longueur 1, en un :ctype:`char` C."
802+
"Convertit un octet Python, représenté comme un objet :class:`bytes` ou :"
803+
"class:`bytearray` de longueur 1, en un :c:type:`char` C."
804804

805805
#: ../Doc/c-api/arg.rst:269
806806
msgid "Allow :class:`bytearray` objects."
@@ -816,23 +816,23 @@ msgid ""
816816
"1, to a C :c:type:`int`."
817817
msgstr ""
818818
"Convertit un caractère Python, représenté comme un objet :class:`str` de "
819-
"longueur 1, en un :ctype:`int` C."
819+
"longueur 1, en un :c:type:`int` C."
820820

821821
#: ../Doc/c-api/arg.rst:277 ../Doc/c-api/arg.rst:599
822822
msgid "``f`` (:class:`float`) [float]"
823823
msgstr "``f`` (:class:`float`) [float]"
824824

825825
#: ../Doc/c-api/arg.rst:277
826826
msgid "Convert a Python floating point number to a C :c:type:`float`."
827-
msgstr "Convertit un nombre flottant Python vers un :ctype:`float`."
827+
msgstr "Convertit un nombre flottant Python vers un :c:type:`float`."
828828

829829
#: ../Doc/c-api/arg.rst:280 ../Doc/c-api/arg.rst:596
830830
msgid "``d`` (:class:`float`) [double]"
831831
msgstr "``d`` (:class:`float`) [double]"
832832

833833
#: ../Doc/c-api/arg.rst:280
834834
msgid "Convert a Python floating point number to a C :c:type:`double`."
835-
msgstr "Convertit un nombre flottant Python vers un :ctype:`double` C."
835+
msgstr "Convertit un nombre flottant Python vers un :c:type:`double` C."
836836

837837
#: ../Doc/c-api/arg.rst:283
838838
msgid "``D`` (:class:`complex`) [Py_complex]"
@@ -841,7 +841,8 @@ msgstr "``D`` (:class:`complex`) [Py_complex]"
841841
#: ../Doc/c-api/arg.rst:283
842842
msgid "Convert a Python complex number to a C :c:type:`Py_complex` structure."
843843
msgstr ""
844-
"Convertit un nombre complexe Python vers une structure :ctype:`Py_complex` C."
844+
"Convertit un nombre complexe Python vers une structure :c:type:`Py_complex` "
845+
"C."
845846

846847
#: ../Doc/c-api/arg.rst:286
847848
msgid "Other objects"
@@ -1264,7 +1265,7 @@ msgstr ""
12641265

12651266
#: ../Doc/c-api/arg.rst:560
12661267
msgid "Convert a C :c:type:`long int` to a Python integer object."
1267-
msgstr "Convertit un :ctype:`long int` en un int Python."
1268+
msgstr "Convertit un :c:type:`long int` en un int Python."
12681269

12691270
#: ../Doc/c-api/arg.rst:563
12701271
msgid "Convert a C :c:type:`unsigned char` to a Python integer object."

distutils.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ msgstr "Une liste des extensions Python à construire"
205205

206206
#: ../Doc/distutils/apiref.rst:77
207207
msgid "a list of instances of :class:`distutils.core.Extension`"
208-
msgstr "une liste d'instances de :class:`distutils.core.Extension'"
208+
msgstr "une liste d'instances de :class:`distutils.core.Extension`"
209209

210210
#: ../Doc/distutils/apiref.rst:80
211211
msgid "*classifiers*"

faq.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4577,12 +4577,12 @@ msgid ""
45774577
"format(144)`` yields ``'0144'`` and ``\"{:.3f}\".format(1.0/3.0)`` yields "
45784578
"``'0.333'``."
45794579
msgstr ""
4580-
"Pour convertir, par exemple, le nombre 144 en la chaîne '144 ', utilisez la "
4580+
"Pour convertir, par exemple, le nombre 144 en la chaîne '144', utilisez la "
45814581
"fonction native :func:`str`. Si vous voulez une représentation hexadécimale "
45824582
"ou octale, utilisez les fonctions :func:`hex` ou :func:`oct`. Pour une "
45834583
"meilleure la mise en forme, voir la section :ref:`formatstrings`, par "
45844584
"exemple, ``\"{:04d) \".format (144)`` donne ``'0144'`` et ``\"{:.3f)\"."
4585-
"format (1.0/3.0) donne ``'0,333' ``."
4585+
"format(1.0/3.0)`` donne ``'0,333'``."
45864586

45874587
#: ../Doc/faq/programming.rst:847
45884588
msgid "How do I modify a string in place?"
@@ -4982,8 +4982,8 @@ msgid ""
49824982
"`hashable`) this is often faster ::"
49834983
msgstr ""
49844984
"Si tous les éléments de la liste peuvent être utilisés comme des clés de "
4985-
"dictionnaire (càd, qu'elles sont toutes hachables) ceci est souvent plus "
4986-
"rapide : ::"
4985+
"dictionnaire (càd, qu'elles sont toutes :term:`hachables <hashable>`) ceci "
4986+
"est souvent plus rapide : ::"
49874987

49884988
#: ../Doc/faq/programming.rst:1137
49894989
msgid ""

library.po

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50386,9 +50386,9 @@ msgid ""
5038650386
"extract a comparison key from each input element. The default value is "
5038750387
"``None`` (compare the elements directly)."
5038850388
msgstr ""
50389-
"*key* spécifie une fonction d'un argument utilisé pour extraire une clef de "
50390-
"comparaison de chaque élément de la liste. La valeur par défaut est ``None`` "
50391-
"(compare les éléments directement)."
50389+
"*key* spécifie une :term:`key function` d'un argument utilisée pour extraire "
50390+
"une clef de comparaison de chaque élément de la liste. La valeur par défaut "
50391+
"est ``None`` (compare les éléments directement)."
5039250392

5039350393
#: ../Doc/library/heapq.rst:101
5039450394
msgid ""
@@ -60451,13 +60451,13 @@ msgid ""
6045160451
"terminated by the given string, and the line ending is returned to the "
6045260452
"caller untranslated."
6045360453
msgstr ""
60454-
"Lors de la lecture, si *newline* est ``None``, le mode *universal newlines* "
60455-
"est activé. Les lignes lues peuvent terminer par ``'\\n'``, ``'\\r'``, ou "
60456-
"``'\\r\\n'``, qui sont remplacés par ``'\\n'``, avant d'être données à "
60457-
"l'appelant. S'il vaut ``''``, le mode *universal newline* est activé mais "
60458-
"les fin de lignes ne sont pas remplacés. S'il a n'importe quel autre valeur "
60459-
"autorisée, les lignes sont seulement terminées par la chaîne donnée, qui est "
60460-
"rendue tel qu'elle."
60454+
"Lors de la lecture, si *newline* est ``None``, le mode :term:`universal "
60455+
"newlines` est activé. Les lignes lues peuvent terminer par ``'\\n'``, "
60456+
"``'\\r'``, ou ``'\\r\\n'``, qui sont remplacés par ``'\\n'``, avant d'être "
60457+
"données à l'appelant. S'il vaut ``''``, le mode *universal newline* est "
60458+
"activé mais les fin de lignes ne sont pas remplacés. S'il a n'importe quel "
60459+
"autre valeur autorisée, les lignes sont seulement terminées par la chaîne "
60460+
"donnée, qui est rendue tel qu'elle."
6046160461

6046260462
#: ../Doc/library/io.rst:863
6046360463
msgid ""

0 commit comments

Comments
 (0)