-
-
Notifications
You must be signed in to change notification settings - Fork 259
Expand file tree
/
Copy pathfunctions.po
More file actions
3442 lines (3061 loc) · 152 KB
/
Copy pathfunctions.po
File metadata and controls
3442 lines (3061 loc) · 152 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
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# 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: 2023-03-22 22:16+0100\n"
"PO-Revision-Date: 2023-03-22 22:49+0100\n"
"Last-Translator: Antoine Wecxsteen\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"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 2.3\n"
#: library/functions.rst:11
msgid "Built-in Functions"
msgstr "Fonctions natives"
#: library/functions.rst:7
msgid ""
"The Python interpreter has a number of functions and types built into it "
"that are always available. They are listed here in alphabetical order."
msgstr ""
"L'interpréteur Python propose quelques fonctions et types natifs qui sont "
"toujours disponibles. Ils sont listés ici par ordre alphabétique."
#: library/functions.rst:13
msgid ":func:`abs`"
msgstr ":func:`abs`"
#: library/functions.rst:13
msgid ":func:`delattr`"
msgstr ":func:`delattr`"
#: library/functions.rst:13
msgid ":func:`hash`"
msgstr ":func:`hash`"
#: library/functions.rst:13
msgid "|func-memoryview|_"
msgstr "|func-memoryview|_"
#: library/functions.rst:13
msgid "|func-set|_"
msgstr "|func-set|_"
#: library/functions.rst:14
msgid ":func:`all`"
msgstr ":func:`all`"
#: library/functions.rst:14
msgid "|func-dict|_"
msgstr "|func-dict|_"
#: library/functions.rst:14
msgid ":func:`help`"
msgstr ":func:`help`"
#: library/functions.rst:14
msgid ":func:`min`"
msgstr ":func:`min`"
#: library/functions.rst:14
msgid ":func:`setattr`"
msgstr ":func:`setattr`"
#: library/functions.rst:15
msgid ":func:`any`"
msgstr ":func:`any`"
#: library/functions.rst:15
msgid ":func:`dir`"
msgstr ":func:`dir`"
#: library/functions.rst:15
msgid ":func:`hex`"
msgstr ":func:`hex`"
#: library/functions.rst:15
msgid ":func:`next`"
msgstr ":func:`next`"
#: library/functions.rst:15
msgid ":func:`slice`"
msgstr ":func:`slice`"
#: library/functions.rst:16
msgid ":func:`ascii`"
msgstr ":func:`ascii`"
#: library/functions.rst:16
msgid ":func:`divmod`"
msgstr ":func:`divmod`"
#: library/functions.rst:16
msgid ":func:`id`"
msgstr ":func:`id`"
#: library/functions.rst:16
msgid ":func:`object`"
msgstr ":func:`object`"
#: library/functions.rst:16
msgid ":func:`sorted`"
msgstr ":func:`sorted`"
#: library/functions.rst:17
msgid ":func:`bin`"
msgstr ":func:`bin`"
#: library/functions.rst:17
msgid ":func:`enumerate`"
msgstr ":func:`enumerate`"
#: library/functions.rst:17
msgid ":func:`input`"
msgstr ":func:`input`"
#: library/functions.rst:17
msgid ":func:`oct`"
msgstr ":func:`oct`"
#: library/functions.rst:17
msgid ":func:`staticmethod`"
msgstr ":func:`staticmethod`"
#: library/functions.rst:18
msgid ":func:`bool`"
msgstr ":func:`bool`"
#: library/functions.rst:18
msgid ":func:`eval`"
msgstr ":func:`eval`"
#: library/functions.rst:18
msgid ":func:`int`"
msgstr ":func:`int`"
#: library/functions.rst:18
msgid ":func:`open`"
msgstr ":func:`open`"
#: library/functions.rst:18
msgid "|func-str|_"
msgstr "|func-str|_"
#: library/functions.rst:19
msgid ":func:`breakpoint`"
msgstr ":func:`breakpoint`"
#: library/functions.rst:19
msgid ":func:`exec`"
msgstr ":func:`exec`"
#: library/functions.rst:19
msgid ":func:`isinstance`"
msgstr ":func:`isinstance`"
#: library/functions.rst:19
msgid ":func:`ord`"
msgstr ":func:`ord`"
#: library/functions.rst:19
msgid ":func:`sum`"
msgstr ":func:`sum`"
#: library/functions.rst:20
msgid "|func-bytearray|_"
msgstr "|func-bytearray|_"
#: library/functions.rst:20
msgid ":func:`filter`"
msgstr ":func:`filter`"
#: library/functions.rst:20
msgid ":func:`issubclass`"
msgstr ":func:`issubclass`"
#: library/functions.rst:20
msgid ":func:`pow`"
msgstr ":func:`pow`"
#: library/functions.rst:20
msgid ":func:`super`"
msgstr ":func:`super`"
#: library/functions.rst:21
msgid "|func-bytes|_"
msgstr "|func-bytes|_"
#: library/functions.rst:21
msgid ":func:`float`"
msgstr ":func:`float`"
#: library/functions.rst:21
msgid ":func:`iter`"
msgstr ":func:`iter`"
#: library/functions.rst:21
msgid ":func:`print`"
msgstr ":func:`print`"
#: library/functions.rst:21
msgid "|func-tuple|_"
msgstr "|func-tuple|_"
#: library/functions.rst:22
msgid ":func:`callable`"
msgstr ":func:`callable`"
#: library/functions.rst:22
msgid ":func:`format`"
msgstr ":func:`format`"
#: library/functions.rst:22
msgid ":func:`len`"
msgstr ":func:`len`"
#: library/functions.rst:22
msgid ":func:`property`"
msgstr ":func:`property`"
#: library/functions.rst:22
msgid ":func:`type`"
msgstr ":func:`type`"
#: library/functions.rst:23
msgid ":func:`chr`"
msgstr ":func:`chr`"
#: library/functions.rst:23
msgid "|func-frozenset|_"
msgstr "|func-frozenset|_"
#: library/functions.rst:23
msgid "|func-list|_"
msgstr "|func-list|_"
#: library/functions.rst:23
msgid "|func-range|_"
msgstr "|func-range|_"
#: library/functions.rst:23
msgid ":func:`vars`"
msgstr ":func:`vars`"
#: library/functions.rst:24
msgid ":func:`classmethod`"
msgstr ":func:`classmethod`"
#: library/functions.rst:24
msgid ":func:`getattr`"
msgstr ":func:`getattr`"
#: library/functions.rst:24
msgid ":func:`locals`"
msgstr ":func:`locals`"
#: library/functions.rst:24
msgid ":func:`repr`"
msgstr ":func:`repr`"
#: library/functions.rst:24
msgid ":func:`zip`"
msgstr ":func:`zip`"
#: library/functions.rst:25
msgid ":func:`compile`"
msgstr ":func:`compile`"
#: library/functions.rst:25
msgid ":func:`globals`"
msgstr ":func:`globals`"
#: library/functions.rst:25
msgid ":func:`map`"
msgstr ":func:`map`"
#: library/functions.rst:25
msgid ":func:`reversed`"
msgstr ":func:`reversed`"
#: library/functions.rst:25
msgid ":func:`__import__`"
msgstr ":func:`__import__`"
#: library/functions.rst:26
msgid ":func:`complex`"
msgstr ":func:`complex`"
#: library/functions.rst:26
msgid ":func:`hasattr`"
msgstr ":func:`hasattr`"
#: library/functions.rst:26
msgid ":func:`max`"
msgstr ":func:`max`"
#: library/functions.rst:26
msgid ":func:`round`"
msgstr ":func:`round`"
#: library/functions.rst:45
msgid ""
"Return the absolute value of a number. The argument may be an integer, a "
"floating point number, or an object implementing :meth:`__abs__`. If the "
"argument is a complex number, its magnitude is returned."
msgstr ""
"Renvoie la valeur absolue d'un nombre. L'argument peut être un nombre "
"entier, un nombre à virgule flottante, ou tout objet définissant :meth:"
"`__abs__`. Si l'argument est un nombre complexe, son module est renvoyé."
#: library/functions.rst:52
msgid ""
"Return ``True`` if all elements of the *iterable* are true (or if the "
"iterable is empty). Equivalent to::"
msgstr ""
"Renvoie ``True`` si tous les éléments de *iterable* sont vrais (ou s'il est "
"vide). Équivaut à ::"
#: library/functions.rst:64
msgid ""
"Return ``True`` if any element of the *iterable* is true. If the iterable "
"is empty, return ``False``. Equivalent to::"
msgstr ""
"Renvoie ``True`` si au moins un élément de *iterable* est vrai. ``False`` "
"est renvoyé dans le cas où *iterable* est vide. Équivaut à ::"
#: library/functions.rst:76
msgid ""
"As :func:`repr`, return a string containing a printable representation of an "
"object, but escape the non-ASCII characters in the string returned by :func:"
"`repr` using ``\\x``, ``\\u`` or ``\\U`` escapes. This generates a string "
"similar to that returned by :func:`repr` in Python 2."
msgstr ""
"Renvoie, tout comme :func:`repr`, une chaîne contenant une représentation "
"affichable d'un objet, en transformant les caractères non ASCII renvoyés "
"par :func:`repr` en utilisant des séquences d'échappement ``\\x``, ``\\u`` "
"ou ``\\U``. Cela génère une chaîne similaire à ce que renvoie :func:`repr` "
"dans Python 2."
#: library/functions.rst:84
msgid ""
"Convert an integer number to a binary string prefixed with \"0b\". The "
"result is a valid Python expression. If *x* is not a Python :class:`int` "
"object, it has to define an :meth:`__index__` method that returns an "
"integer. Some examples:"
msgstr ""
"Convertit un nombre entier en binaire dans une chaîne avec le préfixe "
"``0b``. Le résultat est une expression Python valide. Si *x* n'est pas un :"
"class:`int`, il doit définir une méthode :meth:`__index__` donnant un nombre "
"entier. Voici quelques exemples :"
#: library/functions.rst:94
msgid ""
"If prefix \"0b\" is desired or not, you can use either of the following ways."
msgstr ""
"Pour contrôler l'affichage du préfixe ``0b``, vous pouvez utiliser les "
"moyens suivants."
#: library/functions.rst:757 library/functions.rst:1053
msgid "See also :func:`format` for more information."
msgstr "Voir aussi :func:`format` pour plus d'informations."
#: library/functions.rst:106
msgid ""
"Return a Boolean value, i.e. one of ``True`` or ``False``. *x* is converted "
"using the standard :ref:`truth testing procedure <truth>`. If *x* is false "
"or omitted, this returns ``False``; otherwise it returns ``True``. The :"
"class:`bool` class is a subclass of :class:`int` (see :ref:`typesnumeric`). "
"It cannot be subclassed further. Its only instances are ``False`` and "
"``True`` (see :ref:`bltin-boolean-values`)."
msgstr ""
"Renvoie une valeur booléenne, c'est-à-dire soit ``True``, soit ``False``. "
"*x* est converti en utilisant la :ref:`procédure standard d'évaluation de "
"valeur de vérité<truth>`. Si *x* est faux, ou omis, elle renvoie ``False``, "
"sinon, elle renvoie ``True``. La classe :class:`bool` hérite de la classe :"
"class:`int` (voir :ref:`typesnumeric`). Il n'est pas possible d'en hériter, "
"ses seules instances sont ``False`` et ``True`` (voir :ref:`bltin-boolean-"
"values`)."
#: library/functions.rst:625 library/functions.rst:841
msgid "*x* is now a positional-only parameter."
msgstr "*x* est désormais un argument exclusivement optionnel."
#: library/functions.rst:120
msgid ""
"This function drops you into the debugger at the call site. Specifically, "
"it calls :func:`sys.breakpointhook`, passing ``args`` and ``kws`` straight "
"through. By default, ``sys.breakpointhook()`` calls :func:`pdb.set_trace()` "
"expecting no arguments. In this case, it is purely a convenience function "
"so you don't have to explicitly import :mod:`pdb` or type as much code to "
"enter the debugger. However, :func:`sys.breakpointhook` can be set to some "
"other function and :func:`breakpoint` will automatically call that, allowing "
"you to drop into the debugger of choice."
msgstr ""
"Cette fonction vous place dans le débogueur lorsqu'elle est appelée. Plus "
"précisément, elle appelle :func:`sys.breakpointhook`, en lui passant les "
"arguments ``args`` et ``kws``. Par défaut, ``sys.breakpointhook()`` appelle :"
"func:`pdb.set_trace()` qui n'attend aucun argument. Dans ce cas, c'est "
"purement une fonction de commodité donc vous n'avez pas à importer "
"explicitement :mod:`pdb` ou à taper plus de code pour entrer dans le "
"débogueur. Cependant, il est possible d'affecter une autre fonction à :func:"
"`sys.breakpointhook`, que :func:`breakpoint` appellera automatiquement, vous "
"permettant ainsi de basculer dans le débogueur de votre choix."
#: library/functions.rst:130
msgid ""
"Raises an :ref:`auditing event <auditing>` ``builtins.breakpoint`` with "
"argument ``breakpointhook``."
msgstr ""
"Lève un :ref:`auditing event <auditing>` ``builtins.breakpoint`` avec "
"l'argument ``breakpointhook``."
#: library/functions.rst:138
msgid ""
"Return a new array of bytes. The :class:`bytearray` class is a mutable "
"sequence of integers in the range 0 <= x < 256. It has most of the usual "
"methods of mutable sequences, described in :ref:`typesseq-mutable`, as well "
"as most methods that the :class:`bytes` type has, see :ref:`bytes-methods`."
msgstr ""
"Renvoie un nouveau tableau d'octets. La classe :class:`bytearray` est une "
"séquence muable de nombres entiers dans l'intervalle 0 <= x < 256. Il "
"possède la plupart des méthodes des séquences variables, décrites dans :ref:"
"`typesseq-mutable`, ainsi que la plupart des méthodes de la classe :class:"
"`bytes`, voir :ref:`bytes-methods`."
#: library/functions.rst:143
msgid ""
"The optional *source* parameter can be used to initialize the array in a few "
"different ways:"
msgstr ""
"Le paramètre optionnel *source* peut être utilisé pour initialiser le "
"tableau de plusieurs façons :"
#: library/functions.rst:146
msgid ""
"If it is a *string*, you must also give the *encoding* (and optionally, "
"*errors*) parameters; :func:`bytearray` then converts the string to bytes "
"using :meth:`str.encode`."
msgstr ""
"si c'est une *chaîne*, vous devez aussi donner le paramètre *encoding* pour "
"l'encodage (et éventuellement *errors*). La fonction :func:`bytearray` "
"convertit ensuite la chaîne en octets via la méthode :meth:`str.encode` ;"
#: library/functions.rst:150
msgid ""
"If it is an *integer*, the array will have that size and will be initialized "
"with null bytes."
msgstr ""
"si c'est un *entier*, le tableau a cette taille et est initialisé d'octets "
"*null* ;"
#: library/functions.rst:153
msgid ""
"If it is an object conforming to the :ref:`buffer interface "
"<bufferobjects>`, a read-only buffer of the object will be used to "
"initialize the bytes array."
msgstr ""
"si c'est un objet conforme à :ref:`l'interface tampon <bufferobjects>`, un "
"tampon en lecture seule de l'objet est utilisé pour initialiser le tableau ;"
#: library/functions.rst:156
msgid ""
"If it is an *iterable*, it must be an iterable of integers in the range ``0 "
"<= x < 256``, which are used as the initial contents of the array."
msgstr ""
"Si c'est un *itérable*, il doit itérer sur des nombres entier dans "
"l'intervalle ``0 <= x < 256``, qui sont utilisés pour initialiser le contenu "
"du tableau."
#: library/functions.rst:159
msgid "Without an argument, an array of size 0 is created."
msgstr "Sans argument, un tableau vide est créé."
#: library/functions.rst:161
msgid "See also :ref:`binaryseq` and :ref:`typebytearray`."
msgstr "Voir :ref:`binaryseq` et :ref:`typebytearray`."
#: library/functions.rst:168
msgid ""
"Return a new \"bytes\" object, which is an immutable sequence of integers in "
"the range ``0 <= x < 256``. :class:`bytes` is an immutable version of :"
"class:`bytearray` -- it has the same non-mutating methods and the same "
"indexing and slicing behavior."
msgstr ""
"Renvoie un nouvel objet *bytes*, qui est une séquence immuable de nombres "
"entiers dans l'intervalle ``0 <= x < 256``. Un :class:`bytes` est une "
"version immuable de :class:`bytearray` — avec les mêmes méthodes d'accès, et "
"le même comportement lors de l'indexation ou la découpe."
#: library/functions.rst:173
msgid ""
"Accordingly, constructor arguments are interpreted as for :func:`bytearray`."
msgstr ""
"En conséquence, les arguments du constructeur sont les mêmes que pour :func:"
"`bytearray`."
#: library/functions.rst:175
msgid "Bytes objects can also be created with literals, see :ref:`strings`."
msgstr ""
"Les objets *bytes* peuvent aussi être créés à partir de littéraux, voir :ref:"
"`strings`."
#: library/functions.rst:177
msgid "See also :ref:`binaryseq`, :ref:`typebytes`, and :ref:`bytes-methods`."
msgstr ""
"Voir aussi :ref:`binaryseq`, :ref:`typebytes`, et :ref:`bytes-methods`."
#: library/functions.rst:182
msgid ""
"Return :const:`True` if the *object* argument appears callable, :const:"
"`False` if not. If this returns ``True``, it is still possible that a call "
"fails, but if it is ``False``, calling *object* will never succeed. Note "
"that classes are callable (calling a class returns a new instance); "
"instances are callable if their class has a :meth:`__call__` method."
msgstr ""
"Renvoie :const:`True` si l'argument *object* semble être appelable, sinon :"
"const:`False`. Lorsqu'elle renvoie ``True``, il est toujours possible qu'un "
"appel échoue. Cependant, lorsqu'elle renvoie ``False``, il n'est jamais "
"possible d'appeler *object*. Notez qu'une classe est toujours appelable "
"(appeler une classe donne une nouvelle instance) ; une instance n'est "
"appelable que si sa classe définit une méthode :meth:`__call__`."
#: library/functions.rst:188
msgid ""
"This function was first removed in Python 3.0 and then brought back in "
"Python 3.2."
msgstr ""
"cette fonction a d'abord été supprimée avec Python 3.0 puis elle a été "
"remise dans Python 3.2."
#: library/functions.rst:195
msgid ""
"Return the string representing a character whose Unicode code point is the "
"integer *i*. For example, ``chr(97)`` returns the string ``'a'``, while "
"``chr(8364)`` returns the string ``'€'``. This is the inverse of :func:`ord`."
msgstr ""
"Renvoie la chaîne représentant un caractère dont le code de caractère "
"Unicode est le nombre entier *i*. Par exemple, ``chr(97)`` renvoie la chaîne "
"de caractères ``'a'``, tandis que ``chr(8364)`` renvoie ``'€'``. Il s'agit "
"de l'inverse de :func:`ord`."
#: library/functions.rst:199
msgid ""
"The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in "
"base 16). :exc:`ValueError` will be raised if *i* is outside that range."
msgstr ""
"L'intervalle valide pour cet argument est de ``0`` à ``1114111`` "
"(``0x10FFFF`` en base 16). Une exception :exc:`ValueError` est levée si *i* "
"est en dehors de l'intervalle."
#: library/functions.rst:205
msgid "Transform a method into a class method."
msgstr "Transforme une méthode en méthode de classe."
#: library/functions.rst:207
msgid ""
"A class method receives the class as implicit first argument, just like an "
"instance method receives the instance. To declare a class method, use this "
"idiom::"
msgstr ""
"Une méthode de classe reçoit implicitement la classe en premier argument, "
"tout comme une méthode d'instance reçoit l'instance. Voici comment déclarer "
"une méthode de classe ::"
#: library/functions.rst:215
msgid ""
"The ``@classmethod`` form is a function :term:`decorator` -- see :ref:"
"`function` for details."
msgstr ""
"La forme ``@classmethod`` est un :term:`décorateur <decorator>` de fonction "
"— consultez :ref:`function` pour plus de détails."
#: library/functions.rst:218
msgid ""
"A class method can be called either on the class (such as ``C.f()``) or on "
"an instance (such as ``C().f()``). The instance is ignored except for its "
"class. If a class method is called for a derived class, the derived class "
"object is passed as the implied first argument."
msgstr ""
"Elle peut être appelée soit sur la classe (comme ``C.f()``) ou sur une "
"instance (comme ``C().f()``). L'instance est ignorée, sauf pour déterminer "
"sa classe. Si la méthode est appelée sur une instance de classe fille, c'est "
"la classe fille qui sera donnée en premier argument implicite."
#: library/functions.rst:223
msgid ""
"Class methods are different than C++ or Java static methods. If you want "
"those, see :func:`staticmethod` in this section. For more information on "
"class methods, see :ref:`types`."
msgstr ""
"Les méthodes de classe sont différentes des méthodes statiques du C++ ou du "
"Java. Si ce sont elles dont vous avez besoin, regardez du côté de :func:"
"`staticmethod` dans cette section. Voir aussi :ref:`types`."
#: library/functions.rst:227
msgid ""
"Class methods can now wrap other :term:`descriptors <descriptor>` such as :"
"func:`property`."
msgstr ""
"les méthodes de classe peuvent encapsuler d'autres :term:`descripteurs "
"<descriptor>` comme :func:`property`."
#: library/functions.rst:233
msgid ""
"Compile the *source* into a code or AST object. Code objects can be "
"executed by :func:`exec` or :func:`eval`. *source* can either be a normal "
"string, a byte string, or an AST object. Refer to the :mod:`ast` module "
"documentation for information on how to work with AST objects."
msgstr ""
"Compile *source* en un objet code ou objet AST. Les objets code peuvent être "
"exécutés par :func:`exec` ou :func:`eval`. *source* peut être une chaîne, "
"une chaîne d'octets, ou un objet AST. Consultez la documentation du module :"
"mod:`ast` pour des informations sur la manipulation d'objets AST."
#: library/functions.rst:238
msgid ""
"The *filename* argument should give the file from which the code was read; "
"pass some recognizable value if it wasn't read from a file (``'<string>'`` "
"is commonly used)."
msgstr ""
"L'argument *filename* doit désigner le fichier depuis lequel le code a été "
"lu. Donnez quelque chose de reconnaissable lorsqu'il n'a pas été lu depuis "
"un fichier (typiquement ``\"<string>\"``)."
#: library/functions.rst:242
msgid ""
"The *mode* argument specifies what kind of code must be compiled; it can be "
"``'exec'`` if *source* consists of a sequence of statements, ``'eval'`` if "
"it consists of a single expression, or ``'single'`` if it consists of a "
"single interactive statement (in the latter case, expression statements that "
"evaluate to something other than ``None`` will be printed)."
msgstr ""
"L'argument *mode* indique quel type de code doit être compilé : ``'exec'`` "
"si *source* est une suite d'instructions, ``'eval'`` pour une seule "
"expression, ou ``'single'`` s'il ne contient qu'une instruction interactive "
"(dans ce dernier cas, les résultats d'expressions donnant autre chose que "
"``None`` sont affichés)."
#: library/functions.rst:248
msgid ""
"The optional arguments *flags* and *dont_inherit* control which :ref:"
"`compiler options <ast-compiler-flags>` should be activated and which :ref:"
"`future features <future>` should be allowed. If neither is present (or both "
"are zero) the code is compiled with the same flags that affect the code that "
"is calling :func:`compile`. If the *flags* argument is given and "
"*dont_inherit* is not (or is zero) then the compiler options and the future "
"statements specified by the *flags* argument are used in addition to those "
"that would be used anyway. If *dont_inherit* is a non-zero integer then the "
"*flags* argument is it -- the flags (future features and compiler options) "
"in the surrounding code are ignored."
msgstr ""
"Les arguments optionnels *flags* et *dont_inherit* contrôlent quelles :ref:"
"`options de compilation <ast-compiler-flags>` seront activées et quelles :"
"ref:`instructions future <future>` seront autorisées. Si aucun des deux "
"n'est présent (ou que les deux sont à 0), le code est compilé avec les mêmes "
"paramètres que le code appelant :func:`compile`. Si l'argument *flags* est "
"fourni alors que *dont_inherit* ne l'est pas (ou vaut 0), les options de "
"compilation et les instructions *futures* utilisées sont celles définies par "
"*flags* en plus de celles qui auraient été utilisées. Si *dont_inherit* est "
"un entier différent de zéro, *flags* est utilisé tel quel — les *flags* "
"(instructions futures et options de compilation) valables pour le code "
"encadrant *compile* sont ignorés."
#: library/functions.rst:259
msgid ""
"Compiler options and future statements are specified by bits which can be "
"bitwise ORed together to specify multiple options. The bitfield required to "
"specify a given future feature can be found as the :attr:`~__future__."
"_Feature.compiler_flag` attribute on the :class:`~__future__._Feature` "
"instance in the :mod:`__future__` module. :ref:`Compiler flags <ast-compiler-"
"flags>` can be found in :mod:`ast` module, with ``PyCF_`` prefix."
msgstr ""
"Les instructions *future* sont contrôlées par des bits, il est ainsi "
"possible d'en activer plusieurs en les combinant avec un *OU* binaire. Les "
"bits requis pour demander une certaine fonctionnalité se trouvent dans "
"l'attribut :attr:`~__future__._Feature.compiler_flag` de la classe :class:"
"`~__future__.Feature` du module :mod:`__future__`. Les :ref:`options du "
"compilateur <ast-compiler-flags>` se trouvent dans le module :mod:`ast`, "
"avec le préfixe ``PyCF_``."
#: library/functions.rst:267
msgid ""
"The argument *optimize* specifies the optimization level of the compiler; "
"the default value of ``-1`` selects the optimization level of the "
"interpreter as given by :option:`-O` options. Explicit levels are ``0`` (no "
"optimization; ``__debug__`` is true), ``1`` (asserts are removed, "
"``__debug__`` is false) or ``2`` (docstrings are removed too)."
msgstr ""
"L'argument *optimize* indique le niveau d'optimisation du compilateur. La "
"valeur par défaut est ``-1`` qui prend le niveau d'optimisation de "
"l'interpréteur tel que reçu via l'option :option:`-O`. Les niveaux "
"explicites sont : ``0`` (pas d'optimisation, ``__debug__`` est ``True``), "
"``1`` (les ``assert`` sont supprimés, ``__debug__`` est ``False``) ou ``2`` "
"(les *docstrings* sont également supprimées)."
#: library/functions.rst:273
msgid ""
"This function raises :exc:`SyntaxError` if the compiled source is invalid, "
"and :exc:`ValueError` if the source contains null bytes."
msgstr ""
"Cette fonction lève une :exc:`SyntaxError` si la source n'est pas valide, "
"et :exc:`ValueError` si la source contient des octets *null*."
#: library/functions.rst:276
msgid ""
"If you want to parse Python code into its AST representation, see :func:`ast."
"parse`."
msgstr ""
"Si vous voulez transformer du code Python en sa représentation AST, voyez :"
"func:`ast.parse`."
#: library/functions.rst:279
msgid ""
"Raises an :ref:`auditing event <auditing>` ``compile`` with arguments "
"``source``, ``filename``."
msgstr ""
"Lève un :ref:`évènement d'audit <auditing>` ``compile`` avec les arguments "
"``source`` et ``filename``."
#: library/functions.rst:281
msgid ""
"Raises an :ref:`auditing event <auditing>` ``compile`` with arguments "
"``source`` and ``filename``. This event may also be raised by implicit "
"compilation."
msgstr ""
"Lève un :ref:`évènement d'audit <auditing>` ``compile`` avec les arguments "
"``source`` et ``filename``. Cet événement peut également être levé par une "
"compilation implicite."
#: library/functions.rst:287
msgid ""
"When compiling a string with multi-line code in ``'single'`` or ``'eval'`` "
"mode, input must be terminated by at least one newline character. This is "
"to facilitate detection of incomplete and complete statements in the :mod:"
"`code` module."
msgstr ""
"Lors de la compilation d'une chaîne de plusieurs lignes de code avec les "
"modes ``'single'`` ou ``'eval'``, celles-ci doivent être terminées par au "
"moins un retour à la ligne. Cela permet de faciliter la distinction entre "
"les instructions complètes et incomplètes dans le module :mod:`code`."
#: library/functions.rst:294
msgid ""
"It is possible to crash the Python interpreter with a sufficiently large/"
"complex string when compiling to an AST object due to stack depth "
"limitations in Python's AST compiler."
msgstr ""
"Il est possible de faire planter l'interpréteur Python avec des chaînes "
"suffisamment grandes ou complexes lors de la compilation d'un objet AST. "
"Ceci est dû à limitation de la profondeur de la pile d'appels."
#: library/functions.rst:298
msgid ""
"Allowed use of Windows and Mac newlines. Also input in ``'exec'`` mode does "
"not have to end in a newline anymore. Added the *optimize* parameter."
msgstr ""
"autorise l'utilisation de retours à la ligne Mac et Windows. Par ailleurs, "
"la chaîne donnée à ``'exec'`` n'a plus besoin de terminer par un retour à la "
"ligne. Ajout du paramètre *optimize*."
#: library/functions.rst:302
msgid ""
"Previously, :exc:`TypeError` was raised when null bytes were encountered in "
"*source*."
msgstr ""
"Précédemment, l'exception :exc:`TypeError` était levée quand un caractère "
"nul était rencontré dans *source*."
#: library/functions.rst:306
msgid ""
"``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` can now be passed in flags to enable "
"support for top-level ``await``, ``async for``, and ``async with``."
msgstr ""
"``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` peut maintenant être passée à *flags* "
"pour permettre une gestion de ``await``, ``async for``, et ``async with`` de "
"haut niveau."
#: library/functions.rst:313
msgid ""
"Return a complex number with the value *real* + *imag*\\*1j or convert a "
"string or number to a complex number. If the first parameter is a string, "
"it will be interpreted as a complex number and the function must be called "
"without a second parameter. The second parameter can never be a string. "
"Each argument may be any numeric type (including complex). If *imag* is "
"omitted, it defaults to zero and the constructor serves as a numeric "
"conversion like :class:`int` and :class:`float`. If both arguments are "
"omitted, returns ``0j``."
msgstr ""
"Renvoie un nombre complexe de valeur ``real + imag*1j``, ou convertit une "
"chaîne ou un nombre en nombre complexe. Si le premier paramètre est une "
"chaîne, il sera interprété comme un nombre complexe et la fonction doit être "
"appelée sans second paramètre. Le second paramètre ne peut jamais être une "
"chaîne. Chaque argument peut être de n'importe quel type numérique (même "
"complexe). Si *imag* est omis, sa valeur par défaut est zéro, le "
"constructeur effectue alors une simple conversion numérique comme le font :"
"class:`int` ou :class:`float`. Si aucun argument n'est fourni, renvoie "
"``0j``."
#: library/functions.rst:322
msgid ""
"For a general Python object ``x``, ``complex(x)`` delegates to ``x."
"__complex__()``. If ``__complex__()`` is not defined then it falls back to :"
"meth:`__float__`. If ``__float__()`` is not defined then it falls back to :"
"meth:`__index__`."
msgstr ""
"Pour un objet Python général ``x``, ``complex(x)`` délègue à ``x."
"__complex__()``. Si ``__complex__()`` n'est pas défini, alors il délègue à :"
"meth:`__float__`. Si ``__float__()`` n'est pas défini, alors il délègue à :"
"meth:`__index__`."
#: library/functions.rst:329
msgid ""
"When converting from a string, the string must not contain whitespace around "
"the central ``+`` or ``-`` operator. For example, ``complex('1+2j')`` is "
"fine, but ``complex('1 + 2j')`` raises :exc:`ValueError`."
msgstr ""
"Lors de la conversion depuis une chaîne, elle ne doit pas contenir d'espaces "
"autour des opérateurs binaires ``+`` ou ``-``. Par exemple "
"``complex('1+2j')`` est correct, mais ``complex('1 + 2j')`` lève une :exc:"
"`ValueError`."
#: library/functions.rst:334
msgid "The complex type is described in :ref:`typesnumeric`."
msgstr "Le type complexe est décrit dans :ref:`typesnumeric`."
#: library/functions.rst:622 library/functions.rst:838
msgid "Grouping digits with underscores as in code literals is allowed."
msgstr ""
"les chiffres peuvent être groupés avec des tirets bas comme dans les "
"expressions littérales."
#: library/functions.rst:339
msgid ""
"Falls back to :meth:`__index__` if :meth:`__complex__` and :meth:`__float__` "
"are not defined."
msgstr ""
"revient à :meth:`__index__` si :meth:`__complex__` et :meth:`__float__` ne "
"sont pas définis."
#: library/functions.rst:346
msgid ""
"This is a relative of :func:`setattr`. The arguments are an object and a "
"string. The string must be the name of one of the object's attributes. The "
"function deletes the named attribute, provided the object allows it. For "
"example, ``delattr(x, 'foobar')`` is equivalent to ``del x.foobar``."
msgstr ""
"C'est un cousin de :func:`setattr`. Les arguments sont un objet et une "
"chaîne. La chaîne doit être le nom de l'un des attributs de l'objet. La "
"fonction supprime l'attribut nommé, si l'objet l'y autorise. Par exemple "
"``delattr(x, 'foobar')`` est l'équivalent de ``del x.foobar``."
#: library/functions.rst:358
msgid ""
"Create a new dictionary. The :class:`dict` object is the dictionary class. "
"See :class:`dict` and :ref:`typesmapping` for documentation about this class."
msgstr ""
"Créé un nouveau dictionnaire. L'objet :class:`dict` est la classe du "
"dictionnaire. Voir :class:`dict` et :ref:`typesmapping` pour vous documenter "
"sur cette classe."
#: library/functions.rst:361
msgid ""
"For other containers see the built-in :class:`list`, :class:`set`, and :"
"class:`tuple` classes, as well as the :mod:`collections` module."
msgstr ""
"Pour les autres conteneurs, voir les classes natives :class:`list`, :class:"
"`set`, et :class:`tuple`, ainsi que le module :mod:`collections`."
#: library/functions.rst:367
msgid ""
"Without arguments, return the list of names in the current local scope. "
"With an argument, attempt to return a list of valid attributes for that "
"object."
msgstr ""
"Sans argument, elle donne la liste des noms dans l'espace de nommage local. "
"Avec un argument, elle essaye de donner une liste d'attributs valides pour "
"cet objet."
#: library/functions.rst:370
msgid ""
"If the object has a method named :meth:`__dir__`, this method will be called "
"and must return the list of attributes. This allows objects that implement a "
"custom :func:`__getattr__` or :func:`__getattribute__` function to customize "
"the way :func:`dir` reports their attributes."
msgstr ""
"Si l'objet a une méthode :meth:`__dir__`, elle est appelée et doit donner "
"une liste d'attributs. Cela permet aux objets implémentant :func:"
"`__getattr__` ou :func:`__getattribute__` de personnaliser ce que donnera :"
"func:`dir`."
#: library/functions.rst:375
msgid ""
"If the object does not provide :meth:`__dir__`, the function tries its best "
"to gather information from the object's :attr:`~object.__dict__` attribute, "
"if defined, and from its type object. The resulting list is not necessarily "
"complete, and may be inaccurate when the object has a custom :func:"
"`__getattr__`."
msgstr ""
"Si l'objet ne fournit pas de méthode :meth:`__dir__`, la fonction fait de "
"son mieux en rassemblant les informations de l'attribut :attr:`~object."
"__dict__` de l'objet, si défini, et depuis son type. La liste résultante "
"n'est pas nécessairement complète, et peut être inadaptée quand l'objet a "
"un :func:`__getattr__` personnalisé."
#: library/functions.rst:380
msgid ""
"The default :func:`dir` mechanism behaves differently with different types "
"of objects, as it attempts to produce the most relevant, rather than "
"complete, information:"
msgstr ""
"Le mécanisme par défaut de :func:`dir` se comporte différemment avec "
"différents types d'objets, car elle préfère donner une information "
"pertinente plutôt qu'exhaustive :"
#: library/functions.rst:384
msgid ""
"If the object is a module object, the list contains the names of the "
"module's attributes."
msgstr ""
"si l'objet est un module, la liste contiendra les noms des attributs du "
"module ;"
#: library/functions.rst:387
msgid ""
"If the object is a type or class object, the list contains the names of its "
"attributes, and recursively of the attributes of its bases."
msgstr ""
"si l'objet est un type ou une classe, la liste contiendra les noms de ses "
"attributs et, récursivement, des attributs de ses parents ;"
#: library/functions.rst:390
msgid ""
"Otherwise, the list contains the object's attributes' names, the names of "
"its class's attributes, and recursively of the attributes of its class's "
"base classes."
msgstr ""
"autrement, la liste contient les noms des attributs de l'objet, le nom des "
"attributs de la classe, et récursivement des attributs des parents de la "
"classe."
#: library/functions.rst:394
msgid "The resulting list is sorted alphabetically. For example:"
msgstr "La liste donnée est triée par ordre alphabétique, par exemple :"
#: library/functions.rst:413
msgid ""
"Because :func:`dir` is supplied primarily as a convenience for use at an "
"interactive prompt, it tries to supply an interesting set of names more than "
"it tries to supply a rigorously or consistently defined set of names, and "
"its detailed behavior may change across releases. For example, metaclass "
"attributes are not in the result list when the argument is a class."
msgstr ""
"Étant donné que :func:`dir` est d'abord fournie pour son côté pratique en "
"mode interactif, elle a tendance à fournir un ensemble de noms pertinents "
"plutôt qu'un ensemble exhaustif et rigoureusement défini, son comportement "
"peut aussi changer d'une version à l'autre. Par exemple, les attributs de "
"méta-classes ne sont pas donnés lorsque l'argument est une classe."
#: library/functions.rst:423
msgid ""
"Take two (non complex) numbers as arguments and return a pair of numbers "
"consisting of their quotient and remainder when using integer division. "
"With mixed operand types, the rules for binary arithmetic operators apply. "
"For integers, the result is the same as ``(a // b, a % b)``. For floating "
"point numbers the result is ``(q, a % b)``, where *q* is usually ``math."
"floor(a / b)`` but may be 1 less than that. In any case ``q * b + a % b`` "
"is very close to *a*, if ``a % b`` is non-zero it has the same sign as *b*, "
"and ``0 <= abs(a % b) < abs(b)``."
msgstr ""
"Prend deux nombres (non complexes) et donne leur quotient et reste de leur "
"division entière sous forme d'une paire de nombres. Avec des opérandes de "
"types différents, les règles des opérateurs binaires s'appliquent. Pour deux "
"entiers le résultat est le même que ``(a // b, a % b)``. Pour des nombres à "
"virgule flottante le résultat est ``(q, a % b)``, où *q* est généralement "
"``math.floor(a / b)`` mais peut valoir un de moins. Dans tous les cas ``q * "
"b + a % b`` est très proche de *a*. Si ``a % b`` est différent de zéro, il a "
"le même signe que *b*, et ``0 <= abs(a % b) < abs(b)``."
#: library/functions.rst:435
msgid ""
"Return an enumerate object. *iterable* must be a sequence, an :term:"
"`iterator`, or some other object which supports iteration. The :meth:"
"`~iterator.__next__` method of the iterator returned by :func:`enumerate` "
"returns a tuple containing a count (from *start* which defaults to 0) and "
"the values obtained from iterating over *iterable*."
msgstr ""
"Renvoie un objet énumérant. *iterable* doit être une séquence, un :term:"
"`itérateur <iterator>`, ou tout autre objet prenant en charge l'itération. "
"La méthode :meth:`~iterator.__next__` de l'itérateur donné par :func:"
"`enumerate` renvoie un *n*-uplet contenant un compte (démarrant à *start*, 0 "
"par défaut) et les valeurs obtenues de l'itération sur *iterable*."
#: library/functions.rst:447
msgid "Equivalent to::"