Skip to content

Commit b62a286

Browse files
committed
Backporting from 3.9.
1 parent 37cc13e commit b62a286

35 files changed

+1176
-80
lines changed

c-api/memory.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ msgstr ""
488488

489489
#: ../Doc/c-api/memory.rst:368 ../Doc/c-api/memory.rst:513
490490
msgid "Field"
491-
msgstr ""
491+
msgstr "Champ"
492492

493493
#: ../Doc/c-api/memory.rst:368 ../Doc/c-api/memory.rst:513
494494
msgid "Meaning"

c-api/memoryview.po

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ msgid ""
2424
"<bufferobjects>` as a Python object which can then be passed around like any "
2525
"other object."
2626
msgstr ""
27+
"Un objet Python :class:`memoryview` expose le :ref:`protocole tampon "
28+
"<bufferobjects>` du C. Cet objet peut ensuite être passé comme n'importe "
29+
"quel objet."
2730

2831
#: ../Doc/c-api/memoryview.rst:18
2932
msgid ""
@@ -32,19 +35,27 @@ msgid ""
3235
"will be read/write, otherwise it may be either read-only or read/write at "
3336
"the discretion of the exporter."
3437
msgstr ""
38+
"Crée un objet *memoryview* à partir d'un objet implémentant le protocole "
39+
"tampon. Si *obj* permet d'exporter des tampons modifiables, l'objet "
40+
"*memoryview* crée acceptera la lecture et écriture, sinon l'objet crée est "
41+
"soit en lecture seule ou lecture/écriture, à la discrétion de l'*exporteur*."
3542

3643
#: ../Doc/c-api/memoryview.rst:25
3744
msgid ""
3845
"Create a memoryview object using *mem* as the underlying buffer. *flags* can "
3946
"be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`."
4047
msgstr ""
48+
"Crée un objet *memoryview* utilisant *mem* comme un tampon sous-jacent. "
49+
"*flags* peut être :c:macro:`PyBUF_READ` ou :c:macro:`PyBUF_WRITE`."
4150

4251
#: ../Doc/c-api/memoryview.rst:32
4352
msgid ""
4453
"Create a memoryview object wrapping the given buffer structure *view*. For "
4554
"simple byte buffers, :c:func:`PyMemoryView_FromMemory` is the preferred "
4655
"function."
4756
msgstr ""
57+
"Crée un objet *memoryview* à partir de la structure tampon *view*. Pour de "
58+
"simples tampons d'octets, :c:func:`PyMemoryView_FromMemory` est préférée."
4859

4960
#: ../Doc/c-api/memoryview.rst:38
5061
msgid ""
@@ -54,19 +65,30 @@ msgid ""
5465
"original memory. Otherwise, a copy is made and the memoryview points to a "
5566
"new bytes object."
5667
msgstr ""
68+
"Crée un objet *memoryview* vers un segment de mémoire :term:`contiguous` "
69+
"(organisé comme en ``'C'`` ou comme en ``'F'`` pour Fortran) à partir d'un "
70+
"objet qui expose le protocole tampon. Si la mémoire est contiguë, l'objet "
71+
"*memoryview* pointe vers la mémoire d'origine. Sinon une copie est faite et "
72+
"la *memoryview* pointe vers un nouvel objet *bytes*."
5773

5874
#: ../Doc/c-api/memoryview.rst:47
5975
msgid ""
6076
"Return true if the object *obj* is a memoryview object. It is not currently "
6177
"allowed to create subclasses of :class:`memoryview`."
6278
msgstr ""
79+
"Renvoie vrai si l'objet *obj* est un objet *memoryview*. Il n'est pas permis "
80+
"de créer une sous-classe de :class:`memoryview`."
6381

6482
#: ../Doc/c-api/memoryview.rst:53
6583
msgid ""
6684
"Return a pointer to the memoryview's private copy of the exporter's buffer. "
6785
"*mview* **must** be a memoryview instance; this macro doesn't check its "
6886
"type, you must do it yourself or you will risk crashes."
6987
msgstr ""
88+
"Retourne un pointeur vers la copie privée du tampon de l'*exporteur* de "
89+
"*memoryview*. *mview* **doit** être une instance de *memoryview*; cette "
90+
"macro ne vérifie pas le type, vous devez le faire vous-même sinon vous "
91+
"pourriez subir un crash."
7092

7193
#: ../Doc/c-api/memoryview.rst:59
7294
msgid ""
@@ -75,3 +97,7 @@ msgid ""
7597
"func:`PyMemoryView_FromMemory` or :c:func:`PyMemoryView_FromBuffer`. *mview* "
7698
"**must** be a memoryview instance."
7799
msgstr ""
100+
"Renvoie soit un pointeur vers l'objet exporté sur lequel est basé la "
101+
"*memoryview* ou ``NULL`` si la *memoryview* a été crée par :c:func:"
102+
"`PyMemoryView_FromMemory` ou :c:func:`PyMemoryView_FromBuffer`. *mview* "
103+
"**doit** être une instance de *memoryview*."

c-api/structures.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ msgstr ""
143143
#: ../Doc/c-api/structures.rst:139 ../Doc/c-api/structures.rst:279
144144
#: ../Doc/c-api/structures.rst:345
145145
msgid "Field"
146-
msgstr ""
146+
msgstr "Champ"
147147

148148
#: ../Doc/c-api/structures.rst:139 ../Doc/c-api/structures.rst:279
149149
#: ../Doc/c-api/structures.rst:345

c-api/tuple.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ msgstr ""
165165

166166
#: ../Doc/c-api/tuple.rst:151 ../Doc/c-api/tuple.rst:174
167167
msgid "Field"
168-
msgstr ""
168+
msgstr "Champ"
169169

170170
#: ../Doc/c-api/tuple.rst:151 ../Doc/c-api/tuple.rst:174
171171
msgid "C Type"

0 commit comments

Comments
 (0)