Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1ce828f

Browse files
committed
Backporting from 3.9.
1 parentccc4fd1 commit1ce828f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3860
-590
lines changed

‎c-api/arg.po

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ msgid ""
8888
"this object. You won't have to release any memory yourself. The only "
8989
"exceptions are ``es``, ``es#``, ``et`` and ``et#``."
9090
msgstr""
91+
"En général, lorsqu'un format définit un pointeur vers un tampon, le tampon "
92+
"est géré par l'objet Python correspondant et le tampon partage la durée de "
93+
"vie de cet objet. vous n'avez pas à libérer de mémoire. Les seules "
94+
"exceptions sont ``es``, ``es#``, ``et`` et ``et#``."
9195

9296
#:../Doc/c-api/arg.rst:42
9397
msgid""
@@ -150,6 +154,13 @@ msgid ""
150154
"is raised. Unicode objects are converted to C strings using ``'utf-8'`` "
151155
"encoding. If this conversion fails, a :exc:`UnicodeError` is raised."
152156
msgstr""
157+
"Convertit un objet Unicode en un pointeur vers une chaîne de caractères. "
158+
"S'il s'agit d'un pointeur vers une chaîne de caractères déjà existante, il "
159+
"est stocké dans la variable de type pointeur vers un caractère dont vous "
160+
"avez donné l'adresse. Une chaîne de caractères en C se termine par *NULL*. "
161+
"La chaîne de caractères Python ne doit donc pas contenir de caractère dont "
162+
"le code est *null*. Si elle en contient, une exception :exc:`ValueError` est "
163+
"levée. Si la conversion échoue, une :exc:`UnicodeError` est levée."
153164

154165
#:../Doc/c-api/arg.rst:77
155166
msgid""
@@ -158,12 +169,19 @@ msgid ""
158169
"strings, it is preferable to use the ``O&`` format with :c:func:"
159170
"`PyUnicode_FSConverter` as *converter*."
160171
msgstr""
172+
"Ce format n'accepte pas les :term:`objets compatibles avec une chaîne "
173+
"d'octets <bytes-like object>`. Si vous voulez accepter les chemins du "
174+
"système de fichiers et les convertir vers des chaînes de caractères C, il "
175+
"est préférable d'utiliser le format ``O&`` avec :c:func:"
176+
"`PyUnicode_FSConverter` en tant que *converter*."
161177

162178
#:../Doc/c-api/arg.rst:83../Doc/c-api/arg.rst:150
163179
msgid""
164180
"Previously, :exc:`TypeError` was raised when embedded null code points were "
165181
"encountered in the Python string."
166182
msgstr""
183+
"Auparavant, une :exc:`TypeError` était levée quand la chaîne de caractères "
184+
"Python contenait des codes NULL."
167185

168186
#:../Doc/c-api/arg.rst:91
169187
msgid"``s*`` (:class:`str` or :term:`bytes-like object`) [Py_buffer]"
@@ -176,12 +194,19 @@ msgid ""
176194
"resulting C string may contain embedded NUL bytes. Unicode objects are "
177195
"converted to C strings using ``'utf-8'`` encoding."
178196
msgstr""
197+
"Ce format accepte les objets Unicode et les *bytes-like object*. Cela "
198+
"remplit une structure :c:type:`Py_buffer` qui est fournie par l'appelant. "
199+
"Dans ce cas, la chaîne de caractères C qui en résulte peut contenir des "
200+
"octets NULL. Les objets Unicode sont convertis en chaînes de caractères C en "
201+
"utilisant l'encodage ``'utf-8'``."
179202

180203
#:../Doc/c-api/arg.rst:98
181204
msgid""
182205
"``s#`` (:class:`str`, read-only :term:`bytes-like object`) [const char\\*, "
183206
"int or :c:type:`Py_ssize_t`]"
184207
msgstr""
208+
"``s#`` (:class:`str`, :term:`bytes-like object` en lecture seule) [``const "
209+
"char\\*``, ``int`` ou :c:type:`Py_ssize_t`]"
185210

186211
#:../Doc/c-api/arg.rst:94
187212
msgid""
@@ -190,6 +215,11 @@ msgid ""
190215
"second one its length. The string may contain embedded null bytes. Unicode "
191216
"objects are converted to C strings using ``'utf-8'`` encoding."
192217
msgstr""
218+
"La même chose que ``s*``, mais n'accepte pas les objets muables. Le résultat "
219+
"est stocké dans deux variables C, la première est un pointeur vers une "
220+
"chaîne de caractères C, la seconde contient sa taille. La chaîne de "
221+
"caractères peut contenir des octets NULL. Les objets Unicode sont convertis "
222+
"vers des chaînes de caractères C utilisant l'encodage ``'utf-8'``."
193223

194224
#:../Doc/c-api/arg.rst:102../Doc/c-api/arg.rst:566
195225
msgid"``z`` (:class:`str` or ``None``) [const char\\*]"
@@ -232,6 +262,8 @@ msgstr ""
232262
#:../Doc/c-api/arg.rst:120
233263
msgid"``y`` (read-only :term:`bytes-like object`) [const char\\*]"
234264
msgstr""
265+
"``y`` (lecture seule :term:`objet compatible avec une chaîne d'octets <bytes-"
266+
"like object>`) [constante char\\*]"
235267

236268
#:../Doc/c-api/arg.rst:113
237269
msgid""
@@ -240,12 +272,18 @@ msgid ""
240272
"contain embedded null bytes; if it does, a :exc:`ValueError` exception is "
241273
"raised."
242274
msgstr""
275+
"Ce format convertit un *objet compatible avec une chaîne d'octets* en un "
276+
"pointeur C vers une chaîne de caractères ; il n'accepte pas les objets "
277+
"Unicode. Le tampon d'octets ne doit pas contenir d'octets *null* ; si c'est "
278+
"le cas, une exception :exc:`ValueError` est levée."
243279

244280
#:../Doc/c-api/arg.rst:118
245281
msgid""
246282
"Previously, :exc:`TypeError` was raised when embedded null bytes were "
247283
"encountered in the bytes buffer."
248284
msgstr""
285+
"Auparavant, :exc:`TypeError` était levée lorsque des octets *null* étaient "
286+
"rencontrés dans le tampon d'octets."
249287

250288
#:../Doc/c-api/arg.rst:125
251289
msgid"``y*`` (:term:`bytes-like object`) [Py_buffer]"
@@ -306,6 +344,13 @@ msgid ""
306344
"Python string must not contain embedded null code points; if it does, a :exc:"
307345
"`ValueError` exception is raised."
308346
msgstr""
347+
"Convertit un objet Python Unicode en un pointeur C vers un tampon de "
348+
"caractères Unicode terminé par *NULL*. Vous devez passer l'adresse d'un "
349+
"pointeur :c:type:`Py_UNICODE`, qui sera rempli avec le pointeur vers un "
350+
"tampon Unicode existant. Veuillez noter que la taille d'un :c:type:"
351+
"`Py_UNICODE` dépend des options de compilation (soit 16, soit 32 bits). La "
352+
"chaîne de caractères Python ne doit pas contenir de code *NULL*. Si elle en "
353+
"contient, une exception :exc:`ValueError` est levée."
309354

310355
#:../Doc/c-api/arg.rst:157../Doc/c-api/arg.rst:166../Doc/c-api/arg.rst:174
311356
#:../Doc/c-api/arg.rst:182

‎c-api/bytes.po

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

7373
#:../Doc/c-api/bytes.rst:68
7474
msgid"Format Characters"
75-
msgstr""
75+
msgstr"Caractères de format"
7676

7777
#:../Doc/c-api/bytes.rst:68
7878
msgid"Type"

‎c-api/mapping.po

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ msgstr ""
1616

1717
#:../Doc/c-api/mapping.rst:6
1818
msgid"Mapping Protocol"
19-
msgstr""
19+
msgstr"Protocole de correspondance"
2020

2121
#:../Doc/c-api/mapping.rst:8
2222
msgid""
2323
"See also :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` and :c:func:"
2424
"`PyObject_DelItem`."
2525
msgstr""
26+
"Voir aussi :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` et :c:func:"
27+
"`PyObject_DelItem`."
2628

2729
#:../Doc/c-api/mapping.rst:14
2830
msgid""
@@ -37,6 +39,8 @@ msgid ""
3739
"Returns the number of keys in object *o* on success, and ``-1`` on failure. "
3840
"This is equivalent to the Python expression ``len(o)``."
3941
msgstr""
42+
"Renvoie le nombre de clefs dans l'objet *o* et ``-1`` en cas d'échec. C'est "
43+
"l'équivalent de l'expression Python ``len(o)``."
4044

4145
#:../Doc/c-api/mapping.rst:32
4246
msgid""
@@ -58,33 +62,49 @@ msgid ""
5862
"on failure. This is equivalent to the Python statement ``del o[key]``. This "
5963
"is an alias of :c:func:`PyObject_DelItem`."
6064
msgstr""
65+
"Supprime la correspondance associée à l'objet *key* dans l'objet *o*. "
66+
"Renvoie ``-1`` en cas d'échec. C'est l'équivalent de la commande Python "
67+
"``del o[key]``. C'est un alias pour :c:func:`PyObject_DelItem`."
6168

6269
#:../Doc/c-api/mapping.rst:53
6370
msgid""
6471
"Remove the mapping for the string *key* from the object *o*. Return ``-1`` "
6572
"on failure. This is equivalent to the Python statement ``del o[key]``."
6673
msgstr""
74+
"Supprime la correspondance associée à la chaîne *key* dans l'objet *o*. "
75+
"Renvoie ``-1`` en cas d'échec. C'est l'équivalent de la commande Python "
76+
"``del o[key]``."
6777

6878
#:../Doc/c-api/mapping.rst:59../Doc/c-api/mapping.rst:70
6979
msgid""
7080
"Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. "
7181
"This is equivalent to the Python expression ``key in o``. This function "
7282
"always succeeds."
7383
msgstr""
84+
"Renvoie ``1`` si l'objet de correspondance possède une clef *key* et ``0`` "
85+
"sinon. C'est l'équivalent de l'expression Python ``key in o``. Cette "
86+
"fonction ne provoque jamais d'erreur."
7487

7588
#:../Doc/c-api/mapping.rst:63
7689
msgid""
7790
"Note that exceptions which occur while calling the :meth:`__getitem__` "
7891
"method will get suppressed. To get error reporting use :c:func:"
7992
"`PyObject_GetItem()` instead."
8093
msgstr""
94+
"Notez que les exceptions qui surviennent pendant l'appel de la méthode :meth:"
95+
"`__getitem__` seront supprimées. Pour obtenir le rapport d'erreur, utilisez "
96+
"plutôt :c:func:`PyObject_GetItem()`."
8197

8298
#:../Doc/c-api/mapping.rst:74
8399
msgid""
84100
"Note that exceptions which occur while calling the :meth:`__getitem__` "
85101
"method and creating a temporary string object will get suppressed. To get "
86102
"error reporting use :c:func:`PyMapping_GetItemString()` instead."
87103
msgstr""
104+
"Notez que les exceptions qui surviennent en créant une chaîne de caractères "
105+
"temporaire pendant l'appel de la méthode :meth:`__getitem__` seront "
106+
"supprimées. Pour obtenir le rapport d'erreur, utilisez plutôt :c:func:"
107+
"`PyMapping_GetItemString()`."
88108

89109
#:../Doc/c-api/mapping.rst:81
90110
msgid""
@@ -95,7 +115,7 @@ msgstr ""
95115
#:../Doc/c-api/mapping.rst:84../Doc/c-api/mapping.rst:93
96116
#:../Doc/c-api/mapping.rst:102
97117
msgid"Previously, the function returned a list or a tuple."
98-
msgstr""
118+
msgstr"Auparavant, la fonction renvoyait une liste ou un n-uplet."
99119

100120
#:../Doc/c-api/mapping.rst:90
101121
msgid""

‎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: 22 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""

‎c-api/structures.po

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

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

‎c-api/tuple.po

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

151151
#:../Doc/c-api/tuple.rst:145../Doc/c-api/tuple.rst:168
152152
msgid"Field"
153-
msgstr""
153+
msgstr"Champ"
154154

155155
#:../Doc/c-api/tuple.rst:145../Doc/c-api/tuple.rst:168
156156
msgid"C Type"

‎c-api/unicode.po

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

438438
#:../Doc/c-api/unicode.rst:447
439439
msgid"Format Characters"
440-
msgstr""
440+
msgstr"Caractères de format"
441441

442442
#:../Doc/c-api/unicode.rst:447
443443
msgid"Type"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp