Repository navigation
Expand file tree
/
Copy pathstable.po
More file actions
791 lines (687 loc) · 29.2 KB
/
Copy pathstable.po
File metadata and controls
791 lines (687 loc) · 29.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
# Copyright (C) 2001-2018, Python Software Foundation
# For licence information, see README file.
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-17 14:27+0200\n"
"PO-Revision-Date: 2023-03-05 22:38+0100\n"
"Last-Translator: Rémi Lapeyre <remi.lapeyre@lenstra.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.2.1\n"
#: c-api/stable.rst:7
#, fuzzy
msgid "C API and ABI Stability"
msgstr "Stabilité de l’API C"
#: c-api/stable.rst:9
#, fuzzy
msgid ""
"Unless documented otherwise, Python's C API is covered by the Backwards "
"Compatibility Policy, :pep:`387`. Most changes to it are source-compatible "
"(typically by only adding new API). Changing existing API or removing API is "
"only done after a deprecation period or to fix serious issues."
msgstr ""
"L'API C respecte la politique de rétrocompatibilité de Python, :pep:`387`. "
"Malgré la présence d’évolutions dans chaque version mineure (par exemple "
"entre 3.9 et 3.10), la majorité de ces changements n'affecte pas la "
"compatibilité du code source. Typiquement des API sont ajoutées mais pas "
"modifiées ou supprimées, bien que cela puisse arriver après une période de "
"dépréciation ou pour corriger un problème important."
#: c-api/stable.rst:15
#, fuzzy
msgid ""
"CPython's Application Binary Interface (ABI) is forward- and backwards-"
"compatible across a minor release (if these are compiled the same way; "
"see :ref:`stable-abi-platform` below). So, code compiled for Python 3.10.0 "
"will work on 3.10.8 and vice versa, but will need to be compiled separately "
"for 3.9.x and 3.11.x."
msgstr ""
"L’interface binaire de CPython (ABI) est entièrement compatible au sein "
"d’une version mineure (à condition que la compilation soit toujours faite de "
"même manière, comme indiqué dans :ref:`stable-abi-platform` ci-dessous). "
"Ainsi le code compilé pour Python 3.10.0 fonctionnera avec Python 3.10.8 et "
"inversement, mais il devra être compilé séparément pour 3.9.x et 3.10.x."
#: c-api/stable.rst:21
msgid "There are two tiers of C API with different stability expectations:"
msgstr ""
#: c-api/stable.rst:23
msgid ""
":ref:`Unstable API <unstable-c-api>`, may change in minor versions without a "
"deprecation period. It is marked by the ``PyUnstable`` prefix in names."
msgstr ""
#: c-api/stable.rst:25
msgid ""
":ref:`Limited API <limited-c-api>`, is compatible across several minor "
"releases. When :c:macro:`Py_LIMITED_API` is defined, only this subset is "
"exposed from ``Python.h``."
msgstr ""
#: c-api/stable.rst:29
msgid "These are discussed in more detail below."
msgstr ""
#: c-api/stable.rst:31
#, fuzzy
msgid ""
"Names prefixed by an underscore, such as ``_Py_InternalState``, are private "
"API that can change without notice even in patch releases. If you need to "
"use this API, consider reaching out to `CPython developers <https://"
"discuss.python.org/c/core-dev/c-api/30>`_ to discuss adding public API for "
"your use case."
msgstr ""
"Les noms commençant par un caractère souligné, comme ``_Py_InternalState``, "
"font partie de l’API privée et peuvent changer sans préavis même dans une "
"version de correctif."
#: c-api/stable.rst:40
msgid "Unstable C API"
msgstr ""
#: c-api/stable.rst:44
msgid ""
"Any API named with the ``PyUnstable`` prefix exposes CPython implementation "
"details, and may change in every minor release (e.g. from 3.9 to 3.10) "
"without any deprecation warnings. However, it will not change in a bugfix "
"release (e.g. from 3.10.0 to 3.10.1)."
msgstr ""
#: c-api/stable.rst:49
msgid ""
"It is generally intended for specialized, low-level tools like debuggers."
msgstr ""
#: c-api/stable.rst:51
msgid ""
"Projects that use this API are expected to follow CPython development and "
"spend extra effort adjusting to changes."
msgstr ""
#: c-api/stable.rst:58
#, fuzzy
msgid "Stable Application Binary Interfaces"
msgstr "ABI stable"
#: c-api/stable.rst:60
msgid ""
"Python's :dfn:`Stable ABI` allows extensions to be compatible with multiple "
"versions of Python, without recompilation."
msgstr ""
#: c-api/stable.rst:65
#, fuzzy
msgid ""
"For simplicity, this document talks about *extensions*, but Stable ABI works "
"the same way for all uses of the API – for example, embedding Python."
msgstr ""
"(Par simplicité ce document parle *d’extensions*, mais l’API restreinte et "
"l’ABI stable fonctionnent de la même manière pour tous les cas d’usages de "
"l’API — par exemple pour embarquer Python.)"
#: c-api/stable.rst:68
msgid "There are two Stable ABIs:"
msgstr ""
#: c-api/stable.rst:70
msgid ""
"``abi3``, introduced in Python 3.2, is compatible with **non**-:term:`free-"
"threaded <free-threaded build>` builds of CPython."
msgstr ""
#: c-api/stable.rst:73
msgid ""
"``abi3t``, introduced in Python 3.15, is compatible with :term:`free-"
"threaded <free-threaded build>` builds of CPython. It has stricter API "
"limitations than ``abi3``."
msgstr ""
#: c-api/stable.rst:79
msgid "``abi3t`` was added in :pep:`803`"
msgstr ""
#: c-api/stable.rst:81
msgid ""
"It is possible for an extension to be compiled for *both* ``abi3`` and "
"``abi3t`` at the same time; the result will be compatible with both free-"
"threaded and non-free-threaded builds of Python. Currently, this has no "
"downsides compared to compiling for ``abi3t`` only."
msgstr ""
#: c-api/stable.rst:86
msgid ""
"Each Stable ABI is versioned using the first two numbers of the Python "
"version. For example, Stable ABI 3.14 corresponds to Python 3.14. An "
"extension compiled for Stable ABI 3.x is ABI-compatible with Python 3.x and "
"above."
msgstr ""
#: c-api/stable.rst:91
msgid ""
"Extensions that target a stable ABI must only use a limited subset of the C "
"API. This subset is known as the :dfn:`Limited API`; its contents "
"are :ref:`listed below <limited-api-list>`."
msgstr ""
#: c-api/stable.rst:95
#, fuzzy
msgid ""
"On Windows, extensions that use a Stable ABI should be linked against "
"``python3.dll`` rather than a version-specific library such as "
"``python39.dll``. This library only exposes the relevant symbols."
msgstr ""
"Sur Windows les extensions qui utilisent l’ABI stable doivent être liées "
"avec ``python3.dll`` et non pas avec une bibliothèque spécifique à une "
"version comme ``python39.dll``."
#: c-api/stable.rst:100
msgid ""
"On some platforms, Python will look for and load shared library files named "
"with the ``abi3`` or ``abi3t`` tag (for example, "
"``mymodule.abi3.so``). :term:`Free-threaded <free-threaded build>` "
"interpreters only recognize the ``abi3t`` tag, while non-free-threaded ones "
"will prefer ``abi3`` but fall back to ``abi3t``. Thus, extensions compatible "
"with both ABIs should use the ``abi3t`` tag."
msgstr ""
#: c-api/stable.rst:107
msgid ""
"Python does not necessarily check that extensions it loads have compatible "
"ABI. Extension authors are encouraged to add a check using "
"the :c:macro:`Py_mod_abi` slot or the :c:func:`PyABIInfo_Check` function, "
"but the user (or their packaging tool) is ultimately responsible for "
"ensuring that, for example, extensions built for Stable ABI 3.10 are not "
"installed for lower versions of Python."
msgstr ""
#: c-api/stable.rst:115
#, fuzzy
msgid ""
"All functions in Stable ABI are present as functions in Python's shared "
"library, not solely as macros. This makes them usable in languages that "
"don't use the C preprocessor, including Python's :py:mod:`ctypes`."
msgstr ""
"Toutes les fonctions de l’ABI stable sont présentes dans la bibliothèque "
"dynamique de Python en tant que fonction, et pas uniquement comme macro. "
"Elles peuvent donc être utilisées avec des langages qui n’utilisent pas le "
"pré-processeur C."
#: c-api/stable.rst:124
msgid "Compiling for Stable ABI"
msgstr ""
#: c-api/stable.rst:128
msgid ""
"Build tools (such as, for example, meson-python, scikit-build-core, or "
"Setuptools) often have a mechanism for setting macros and synchronizing them "
"with extension filenames and other metadata. Prefer using such a mechanism, "
"if it exists, over defining the macros manually."
msgstr ""
#: c-api/stable.rst:134
msgid ""
"The rest of this section is mainly relevant for tool authors, and for people "
"who compile extensions manually."
msgstr ""
#: c-api/stable.rst:137
msgid "`list of recommended tools`_ in the Python Packaging User Guide"
msgstr ""
#: c-api/stable.rst:141
msgid ""
"To compile for a Stable ABI, define one or both of the following macros to "
"the lowest Python version your extension should support, "
"in :c:macro:`Py_PACK_VERSION` format. Typically, you should choose a "
"specific value rather than the version of the Python headers you are "
"compiling against."
msgstr ""
#: c-api/stable.rst:147
msgid ""
"The macros must be defined before including ``Python.h``. "
"Since :c:macro:`Py_PACK_VERSION` is not available at this point, you will "
"need to use the numeric value directly. For reference, the values for a few "
"recent Python versions are:"
msgstr ""
#: c-api/stable.rst:154
msgid ""
"When one of the macros is defined, ``Python.h`` will only expose API that is "
"compatible with the given Stable ABI -- that is, the :ref:`Limited API "
"<limited-api-list>` plus some definitions that need to be visible to the "
"compiler but should not be used directly. When both are defined, "
"``Python.h`` will only expose API compatible with both Stable ABIs."
msgstr ""
#: c-api/stable.rst:163
msgid ""
"Target ``abi3``, that is, non-:term:`free-threaded builds <free-threaded "
"build>` of CPython. See :ref:`above <abi3-compiling>` for common information."
msgstr ""
#: c-api/stable.rst:169
msgid ""
"Target ``abi3t``, that is, :term:`free-threaded builds <free-threaded "
"build>` of CPython. See :ref:`above <abi3-compiling>` for common information."
msgstr ""
#: c-api/stable.rst:175
msgid ""
"Both macros specify a target ABI; the different naming style is due to "
"backwards compatibility."
msgstr ""
#: c-api/stable.rst:178
msgid "Historical note"
msgstr ""
#: c-api/stable.rst:180
#, fuzzy
msgid ""
"You can also define ``Py_LIMITED_API`` as ``3``. This works the same as "
"``0x03020000`` (Python 3.2, the version that introduced Stable ABI)."
msgstr ""
"Vous pouvez aussi définir ``Py_LIMITED_API`` à ``3``. Cette valeur est "
"équivalente à ``0x03020000`` correspondant à Python 3.2, la première version "
"à supporter l’API restreinte."
#: c-api/stable.rst:183
msgid ""
"When both are defined, ``Python.h`` may, or may not, redefine :c:macro:`!"
"Py_LIMITED_API` to match :c:macro:`!Py_TARGET_ABI3T`."
msgstr ""
#: c-api/stable.rst:186
msgid ""
"On a :term:`free-threaded build` -- that is, when :c:macro:`Py_GIL_DISABLED` "
"is defined -- :c:macro:`!Py_TARGET_ABI3T` defaults to the value "
"of :c:macro:`!Py_LIMITED_API`. This means that there are two ways to build "
"for both ``abi3`` and ``abi3t``:"
msgstr ""
#: c-api/stable.rst:191
msgid ""
"define both :c:macro:`!Py_LIMITED_API` and :c:macro:`!Py_TARGET_ABI3T`, or"
msgstr ""
#: c-api/stable.rst:192
msgid "define only :c:macro:`!Py_LIMITED_API` and:"
msgstr ""
#: c-api/stable.rst:194
msgid "on Windows, define :c:macro:`!Py_GIL_DISABLED`;"
msgstr ""
#: c-api/stable.rst:195
msgid "on other systems, use the headers of free-threaded build of Python."
msgstr ""
#: c-api/stable.rst:201
#, fuzzy
msgid "Stable ABI Scope and Performance"
msgstr "Porté de l’API restreinte et performance"
#: c-api/stable.rst:203
#, fuzzy
msgid ""
"The goal for Stable ABI is to allow everything that is possible with the "
"full C API, but possibly with a performance penalty. Generally, "
"compatibility with Stable ABI will require some changes to an extension's "
"source code."
msgstr ""
"L’objectif de l’API restreinte est de permettre l’ensemble des opérations "
"possibles avec l’API C étendue, mais peut avoir un impact sur les "
"performances."
#: c-api/stable.rst:208
#, fuzzy
msgid ""
"For example, while :c:func:`PyList_GetItem` is available, its \"unsafe\" "
"macro variant :c:func:`PyList_GET_ITEM` is not. The macro can be faster "
"because it can rely on version-specific implementation details of the list "
"object."
msgstr ""
"Par exemple la fonction :c:func:`PyList_GetItem` est disponible, mais la "
"macro « dangereuse » :c:func:`PyList_GET_ITEM` ne l’est pas. Cette macro "
"peut être plus rapide car elle dépend de détails d’implémentation spécifique "
"à l’objet ``list``."
#: c-api/stable.rst:213
#, fuzzy
msgid ""
"For another example, when *not* compiling for Stable ABI, some C API "
"functions are inlined or replaced by macros. Compiling for Stable ABI "
"disables this inlining, allowing stability as Python's data structures are "
"improved, but possibly reducing performance."
msgstr ""
"Si ``Py_LIMITED_API`` n’est pas défini certaines fonctions de l’API C seront "
"remplacées par des macros ou une version en-ligne. Définir "
"``Py_LIMITED_API`` désactive cette optimisation, permettant de se garantir "
"contre les évolutions des structures de données utilisées par Python, et "
"peut réduire les performances."
#: c-api/stable.rst:218
msgid ""
"By leaving out the :c:macro:`!Py_LIMITED_API` or :c:macro:`!Py_TARGET_ABI3T` "
"definition, it is possible to compile Stable-ABI-compatible source for a "
"version-specific ABI. A potentially faster version-specific extension can "
"then be distributed alongside a version compiled for Stable ABI -- a slower "
"but more compatible fallback."
msgstr ""
#: c-api/stable.rst:229
#, fuzzy
msgid "Stable ABI Caveats"
msgstr "ABI stable"
#: c-api/stable.rst:231
msgid ""
"Note that compiling for Stable ABI is *not* a complete guarantee that code "
"will be compatible with the expected Python versions. Stable ABI prevents "
"*ABI* issues, like linker errors due to missing symbols or data corruption "
"due to changes in structure layouts or function signatures. However, other "
"changes in Python can change the *behavior* of extensions."
msgstr ""
#: c-api/stable.rst:238
#, fuzzy
msgid ""
"One issue that the :c:macro:`Py_TARGET_ABI3T` and :c:macro:`Py_LIMITED_API` "
"macros do not guard against is calling a function with arguments that are "
"invalid in a lower Python version. For example, consider a function that "
"starts accepting ``NULL`` for an argument. In Python 3.9, ``NULL`` now "
"selects a default behavior, but in Python 3.8, the argument will be used "
"directly, causing a ``NULL`` dereference and crash. A similar argument works "
"for fields of structs."
msgstr ""
"Une des limitations est que ``Py_LIMITED_API`` ne protège pas contre l’appel "
"d’une fonction avec des arguments qui sont invalides pour une version de "
"Python plus ancienne. Par exemple considérons une fonction qui accepte "
"``NULL`` comme argument à partir de 3.9. ``NULL`` permet maintenant "
"d’utiliser le comportement par défaut, mais Python 3.8 essayera d’accéder à "
"l’objet pointé et dé-référencera ``NULL``, causant un crash. Des problèmes "
"similaires peuvent se produire avec les attributs des structures."
#: c-api/stable.rst:246
#, fuzzy
msgid ""
"For these reasons, we recommend testing an extension with *all* minor Python "
"versions it supports."
msgstr ""
"Pour ces raisons il est recommandé de tester une extension avec *l’ensemble "
"des versions mineures* supportées de Python, et généralement de la compiler "
"avec la plus *ancienne* de ces versions."
#: c-api/stable.rst:249
msgid ""
"We also recommend reviewing documentation of all used API to check if it is "
"explicitly part of the Limited API. Even with ``Py_LIMITED_API`` defined, a "
"few private declarations are exposed for technical reasons (or even "
"unintentionally, as bugs)."
msgstr ""
"Il est aussi recommandé de vérifier la documentation de toutes les API "
"utilisées pour vérifier qu’elles fassent bien partie de l’API restreinte. "
"Même lorsque ``Py_LIMITED_API`` est défini quelques fonctions privées "
"peuvent être exposées aux utilisateurs pour des raisons techniques, ou par "
"erreur."
#: c-api/stable.rst:254
#, fuzzy
msgid ""
"Also note that while compiling with ``Py_LIMITED_API`` 3.8 means that the "
"extension should *load* on Python 3.12, and *compile* with Python 3.12, the "
"same source will not necessarily compile with ``Py_LIMITED_API`` set to "
"3.12. In general, parts of the Limited API may be deprecated and removed, "
"provided that Stable ABI stays stable."
msgstr ""
"Notez aussi que l’API restreinte n’est pas forcément stable : compiler avec "
"Python 3.8 en définissant ``Py_LIMITED_API`` garanti que l’extension "
"fonctionnera avec Python 3.12, mais pas qu’elle pourra *être compilée* avec "
"Python 3.12. En particulier certaines parties de l’API restreinte peuvent "
"être dépréciées et retirées tant que l’ABI stable n’est pas modifiée."
#: c-api/stable.rst:265
msgid "Platform Considerations"
msgstr "Considérations relatives aux plateformes"
#: c-api/stable.rst:267
#, fuzzy
msgid ""
"ABI stability depends not only on Python, but also on the compiler used, "
"lower-level libraries and compiler options. For the purposes of "
"the :ref:`Stable ABIs <stable-abi>`, these details define a “platform”. They "
"usually depend on the OS type and processor architecture"
msgstr ""
"La stabilité de l’ABI ne dépend pas que de Python mais aussi du compilateur "
"utilisé, des bibliothèques systèmes et des options du compilateur. "
"L’ensemble de ces détails correspondent à ce que l’ABI stable appelle une "
"« plateforme ». Ils dépendent généralement du système d’exploitation et de "
"l’architecture du processeur."
#: c-api/stable.rst:272
#, fuzzy
msgid ""
"It is the responsibility of each particular distributor of Python to ensure "
"that all Python versions on a particular platform are built in a way that "
"does not break the Stable ABIs, or the version-specific ABIs. This is the "
"case with Windows and macOS releases from ``python.org`` and many third-"
"party distributors."
msgstr ""
"Les distributeurs de Python doivent s’assurer que toutes les versions de "
"Python pour une plateforme donnée sont compilées de manière à ne pas rompre "
"la compatibilité de l’ABI stable. C’est le cas des versions produites pour "
"Windows et macOS de ``python.org`` et de la plupart des distributions "
"tierces."
#: c-api/stable.rst:280
msgid "ABI Checking"
msgstr ""
#: c-api/stable.rst:284
msgid "Python includes a rudimentary check for ABI compatibility."
msgstr ""
#: c-api/stable.rst:286
msgid ""
"This check is not comprehensive. It only guards against common cases of "
"incompatible modules being installed for the wrong interpreter. It also does "
"not take :ref:`platform incompatibilities <stable-abi-platform>` into "
"account. It can only be done after an extension is successfully loaded."
msgstr ""
#: c-api/stable.rst:293
msgid ""
"Despite these limitations, it is recommended that extension modules use this "
"mechanism, so that detectable incompatibilities raise exceptions rather than "
"crash."
msgstr ""
#: c-api/stable.rst:297
msgid ""
"Most modules can use this check via the :c:data:`Py_mod_abi` slot and "
"the :c:macro:`PyABIInfo_VAR` macro, for example like this:"
msgstr ""
#: c-api/stable.rst:310
msgid "The full API is described below for advanced use cases."
msgstr ""
#: c-api/stable.rst:314
msgid ""
"Verify that the given *info* is compatible with the currently running "
"interpreter."
msgstr ""
#: c-api/stable.rst:317
msgid "Return 0 on success. On failure, raise an exception and return -1."
msgstr ""
#: c-api/stable.rst:319
msgid ""
"If the ABI is incompatible, the raised exception will "
"be :py:exc:`ImportError`."
msgstr ""
#: c-api/stable.rst:321
msgid ""
"The *module_name* argument can be ``NULL``, or point to a NUL-terminated "
"UTF-8-encoded string used for error messages."
msgstr ""
#: c-api/stable.rst:324
msgid ""
"Note that if *info* describes the ABI that the current code uses (as defined "
"by :c:macro:`PyABIInfo_VAR`, for example), using any other Python C API may "
"lead to crashes. In particular, it is not safe to examine the raised "
"exception."
msgstr ""
#: c-api/stable.rst:333
msgid ""
"Define a static :c:struct:`PyABIInfo` variable with the given *NAME* that "
"describes the ABI that the current code will use. This macro expands to:"
msgstr ""
#: c-api/stable.rst:352
msgid "The major version of :c:struct:`PyABIInfo`. Can be set to:"
msgstr ""
#: c-api/stable.rst:354
msgid "``0`` to skip all checking, or"
msgstr ""
#: c-api/stable.rst:355
msgid "``1`` to specify this version of :c:struct:`!PyABIInfo`."
msgstr ""
#: c-api/stable.rst:359
msgid ""
"The minor version of :c:struct:`PyABIInfo`. Must be set to ``0``; larger "
"values are reserved for backwards-compatible future versions of :c:struct:`!"
"PyABIInfo`."
msgstr ""
#: c-api/stable.rst:367
msgid "This field is usually set to the following macro:"
msgstr ""
#: c-api/stable.rst:371
msgid ""
"Default flags, based on current values of macros such "
"as :c:macro:`Py_LIMITED_API` and :c:macro:`Py_GIL_DISABLED`."
msgstr ""
#: c-api/stable.rst:374
msgid ""
"Alternately, the field can be set to the following flags, combined by "
"bitwise OR. Unused bits must be set to zero."
msgstr ""
#: c-api/stable.rst:378
msgid "ABI variant -- one of:"
msgstr ""
#: c-api/stable.rst:382
msgid "Specifies that Stable ABI is used."
msgstr ""
#: c-api/stable.rst:386
msgid ""
"Specifies ABI specific to a particular build of CPython. Internal use only."
msgstr ""
#: c-api/stable.rst:389
msgid "Free-threading compatibility -- one of:"
msgstr ""
#: c-api/stable.rst:393
msgid ""
"Specifies ABI compatible with :term:`free-threaded builds <free-threaded "
"build>` of CPython. (That is, ones compiled with :option:`--disable-gil`; "
"with ``t`` in :py:data:`sys.abiflags`)"
msgstr ""
#: c-api/stable.rst:400
msgid ""
"Specifies ABI compatible with non-free-threaded builds of CPython (ones "
"compiled *without* :option:`--disable-gil`)."
msgstr ""
#: c-api/stable.rst:405
msgid ""
"Specifies ABI compatible with both free-threaded and non-free-threaded "
"builds of CPython, that is, both ``abi3`` and ``abi3t``."
msgstr ""
#: c-api/stable.rst:411
msgid ""
"The version of the Python headers used to build the code, in the format used "
"by :c:macro:`PY_VERSION_HEX`."
msgstr ""
#: c-api/stable.rst:414
msgid ""
"This can be set to ``0`` to skip any checks related to this field. This "
"option is meant mainly for projects that do not use the CPython headers "
"directly, and do not emulate a specific version of them."
msgstr ""
#: c-api/stable.rst:420
msgid "The ABI version."
msgstr ""
#: c-api/stable.rst:422
msgid ""
"For Stable ABI, this field should be the value of :c:macro:`Py_LIMITED_API` "
"or :c:macro:`Py_TARGET_ABI3T`. If both are defined, use the smaller value. "
"(If :c:macro:`Py_LIMITED_API` is ``3``; use :c:expr:`Py_PACK_VERSION(3, 2)` "
"instead of ``3``.)"
msgstr ""
#: c-api/stable.rst:428
msgid "Otherwise, it should be set to :c:macro:`PY_VERSION_HEX`."
msgstr ""
#: c-api/stable.rst:430
msgid "It can also be set to ``0`` to skip any checks related to this field."
msgstr ""
#: c-api/stable.rst:436
msgid ""
"The value that should be used for this field, based on current values of "
"macros such as :c:macro:`Py_LIMITED_API`, :c:macro:`PY_VERSION_HEX` "
"and :c:macro:`Py_GIL_DISABLED`."
msgstr ""
#: c-api/stable.rst:447
msgid "Contents of Limited API"
msgstr "Contenu de l’API restreinte"
#: c-api/stable.rst:449
#, fuzzy
msgid ""
"This is the definitive list of :ref:`Limited API <limited-c-api>` for Python "
"|version|:"
msgstr "Pour le moment l’API restreinte inclut les éléments suivants :"
#, fuzzy
#~ msgid "Limited C API"
#~ msgstr "Inconvénients de l’API restreinte"
#, fuzzy
#~ msgid ""
#~ "Python 3.2 introduced the *Limited API*, a subset of Python's C API. "
#~ "Extensions that only use the Limited API can be compiled once and be "
#~ "loaded on multiple versions of Python. Contents of the Limited API "
#~ "are :ref:`listed below <limited-api-list>`."
#~ msgstr ""
#~ "Le concept d’*API restreinte*, un sous-ensemble de l’API C de Python, "
#~ "existe depuis Python 3.2. Les extensions qui utilisent uniquement l’API "
#~ "restreinte peuvent être compilées une seule fois et fonctionner avec "
#~ "plusieurs versions de Python. Les objets faisant partie de l’API "
#~ "restreinte sont :ref:`documentés ci-dessous <stable-abi-list>`."
#~ msgid ""
#~ "Define this macro before including ``Python.h`` to opt in to only use the "
#~ "Limited API, and to select the Limited API version."
#~ msgstr ""
#~ "Définissez cette macro avant d’inclure ``Python.h`` pour n’inclure que "
#~ "l’API restreinte et indiquer sa version."
#, fuzzy
#~ msgid ""
#~ "Define ``Py_LIMITED_API`` to the value of :c:macro:`PY_VERSION_HEX` "
#~ "corresponding to the lowest Python version your extension supports. The "
#~ "extension will be ABI-compatible with all Python 3 releases from the "
#~ "specified one onward, and can use Limited API introduced up to that "
#~ "version."
#~ msgstr ""
#~ "Définissez ``Py_LIMITED_API`` à la valeur de :c:data:`PY_VERSION_HEX` "
#~ "correspond à la version minimale de Python que votre extension supporte. "
#~ "Cette extension fonctionnera sans re-compilation avec toutes les versions "
#~ "futures de Python 3, et peut utiliser l’ensemble des éléments de l’API "
#~ "restreinte présent dans cette version."
#~ msgid ""
#~ "Rather than using the ``PY_VERSION_HEX`` macro directly, hardcode a "
#~ "minimum minor version (e.g. ``0x030A0000`` for Python 3.10) for stability "
#~ "when compiling with future Python versions."
#~ msgstr ""
#~ "Il est recommandé de renseigner une version mineure minimale (par exemple "
#~ "``0x030A0000`` pour Python 3.10) plutôt que d’utiliser directement la "
#~ "macro ``PY_VERSION_HEX`` pour ne pas dépendre de la version de Python "
#~ "utilisée lors de la compilation."
#, fuzzy
#~ msgid ""
#~ "The Stable ABI contains symbols exposed in the :ref:`Limited API <limited-"
#~ "c-api>`, but also other ones – for example, functions necessary to "
#~ "support older versions of the Limited API."
#~ msgstr ""
#~ "Python a aussi une *ABI stable* : un ensemble de symboles qui sont "
#~ "compatibles avec l’ensemble des versions Python 3.x. L’ABI stable "
#~ "contient les symboles utilisés par l’API restreinte, mais pas seulement — "
#~ "par exemple les fonctions nécessaires pour supporter les versions "
#~ "précédentes de l’API restreinte en font aussi partie."
#~ msgid ""
#~ "On some platforms, Python will look for and load shared library files "
#~ "named with the ``abi3`` tag (e.g. ``mymodule.abi3.so``). It does not "
#~ "check if such extensions conform to a Stable ABI. The user (or their "
#~ "packaging tools) need to ensure that, for example, extensions built with "
#~ "the 3.10+ Limited API are not installed for lower versions of Python."
#~ msgstr ""
#~ "Sur certaines plateformes Python essaiera de charger une bibliothèque "
#~ "partagée dont le nom contient ``abi3`` (par exemple "
#~ "``mymodule.abi3.so``). Il ne vérifie pas si ces extensions respectent "
#~ "l’ABI stable. L’utilisateur (ou ses outils d’administration) doit "
#~ "s’assurer que les extensions compilées avec une version donnée de l’API "
#~ "restreinte, par exemple 3.10+, ne sont pas utilisées avec des versions "
#~ "plus anciennes de Python."
#~ msgid ""
#~ "By leaving out the ``Py_LIMITED_API`` definition, it is possible to "
#~ "compile a Limited API extension with a version-specific ABI. This can "
#~ "improve performance for that Python version, but will limit "
#~ "compatibility. Compiling with ``Py_LIMITED_API`` will then yield an "
#~ "extension that can be distributed where a version-specific one is not "
#~ "available – for example, for prereleases of an upcoming Python version."
#~ msgstr ""
#~ "En omettant la définition de ``Py_LIMITED_API`` il est possible de "
#~ "compiler une extension utilisant l’API restreinte avec une version "
#~ "spécifique de l’ABI. Les performances seront meilleures pour cette "
#~ "version de Python, mais la compatibilité sera réduite. Compiler en "
#~ "définissant ``Py_LIMITED_API`` produira une extension qui peut être "
#~ "utilisée quand une variante spécifique à une version n’est pas disponible "
#~ "— par exemple pour une version alpha de Python."
#~ msgid "Limited API Caveats"
#~ msgstr "Inconvénients de l’API restreinte"
#, fuzzy
#~ msgid ""
#~ "Note that compiling with ``Py_LIMITED_API`` is *not* a complete guarantee "
#~ "that code conforms to the :ref:`Limited API <limited-c-api>` or "
#~ "the :ref:`Stable ABI <stable-abi>`. ``Py_LIMITED_API`` only covers "
#~ "definitions, but an API also includes other issues, such as expected "
#~ "semantics."
#~ msgstr ""
#~ "Compiler avec ``Py_LIMITED_API`` *n’est pas* une garantie absolue que le "
#~ "code est conforme à l’API restreinte ou à l’ABI stable. "
#~ "``Py_LIMITED_API`` ne concerne que la définition des objets, mais une API "
#~ "inclut aussi d’autres spécificités comme le comportement attendu."
#~ msgid ""
#~ "Another issue is that some struct fields are currently not hidden when "
#~ "``Py_LIMITED_API`` is defined, even though they're part of the Limited "
#~ "API."
#~ msgstr ""
#~ "Un autre problème est que certains attributs ne sont pas encore cachés "
#~ "lorsque ``Py_LIMITED_API`` est défini, même s’ils ne font pas partie de "
#~ "l’API restreinte."