5
5
msgstr ""
6
6
"Project-Id-Version : Python 3\n "
7
7
"Report-Msgid-Bugs-To : \n "
8
- "POT-Creation-Date : 2021-03-19 16:59+0100 \n "
8
+ "POT-Creation-Date : 2021-06-22 09:58+0200 \n "
9
9
"PO-Revision-Date : 2020-11-07 16:24+0100\n "
10
10
"Last-Translator : Mindiell <mindiell@mindiell.net>\n "
11
11
"Language-Team : FRENCH <traductions@lists.afpy.org>\n "
@@ -1369,24 +1369,36 @@ msgstr ""
1369
1369
"et la deuxième version n'a besoin d'exécuter la résolution qu'une seule fois."
1370
1370
1371
1371
#: faq/design.rst:713
1372
+ msgid "Why don't generators support the with statement?"
1373
+ msgstr ""
1374
+
1375
+ #: faq/design.rst:715
1376
+ msgid ""
1377
+ "For technical reasons, a generator used directly as a context manager would "
1378
+ "not work correctly. When, as is most common, a generator is used as an "
1379
+ "iterator run to completion, no closing is needed. When it is, wrap it as "
1380
+ "\" contextlib.closing(generator)\" in the 'with' statment."
1381
+ msgstr ""
1382
+
1383
+ #: faq/design.rst:722
1372
1384
msgid "Why are colons required for the if/while/def/class statements?"
1373
1385
msgstr ""
1374
1386
"Pourquoi les deux-points sont-ils nécessaires pour les déclarations ``if/"
1375
1387
"while/def/class`` ?"
1376
1388
1377
- #: faq/design.rst:715
1389
+ #: faq/design.rst:724
1378
1390
msgid ""
1379
1391
"The colon is required primarily to enhance readability (one of the results "
1380
1392
"of the experimental ABC language). Consider this::"
1381
1393
msgstr ""
1382
1394
"Le deux-points est principalement nécessaires pour améliorer la lisibilité "
1383
1395
"(l'un des résultats du langage expérimental ABC). Considérez ceci ::"
1384
1396
1385
- #: faq/design.rst:721
1397
+ #: faq/design.rst:730
1386
1398
msgid "versus ::"
1387
1399
msgstr "versus ::"
1388
1400
1389
- #: faq/design.rst:726
1401
+ #: faq/design.rst:735
1390
1402
msgid ""
1391
1403
"Notice how the second one is slightly easier to read. Notice further how a "
1392
1404
"colon sets off the example in this FAQ answer; it's a standard usage in "
@@ -1396,7 +1408,7 @@ msgstr ""
1396
1408
"aussi comment un deux-points introduit l'exemple dans cette réponse à la "
1397
1409
"FAQ ; c'est un usage standard en anglais."
1398
1410
1399
- #: faq/design.rst:729
1411
+ #: faq/design.rst:738
1400
1412
msgid ""
1401
1413
"Another minor reason is that the colon makes it easier for editors with "
1402
1414
"syntax highlighting; they can look for colons to decide when indentation "
@@ -1408,25 +1420,25 @@ msgstr ""
1408
1420
"pour décider quand l'indentation doit être augmentée au lieu d'avoir à faire "
1409
1421
"une analyse plus élaborée du texte du programme."
1410
1422
1411
- #: faq/design.rst:735
1423
+ #: faq/design.rst:744
1412
1424
msgid "Why does Python allow commas at the end of lists and tuples?"
1413
1425
msgstr ""
1414
1426
"Pourquoi Python permet-il les virgules à la fin des listes et des *n*-"
1415
1427
"uplets ?"
1416
1428
1417
- #: faq/design.rst:737
1429
+ #: faq/design.rst:746
1418
1430
msgid ""
1419
1431
"Python lets you add a trailing comma at the end of lists, tuples, and "
1420
1432
"dictionaries::"
1421
1433
msgstr ""
1422
1434
"Python vous permet d'ajouter une virgule à la fin des listes, des *n*-uplets "
1423
1435
"et des dictionnaires ::"
1424
1436
1425
- #: faq/design.rst:748
1437
+ #: faq/design.rst:757
1426
1438
msgid "There are several reasons to allow this."
1427
1439
msgstr "Il y a plusieurs raisons d'accepter cela."
1428
1440
1429
- #: faq/design.rst:750
1441
+ #: faq/design.rst:759
1430
1442
msgid ""
1431
1443
"When you have a literal value for a list, tuple, or dictionary spread across "
1432
1444
"multiple lines, it's easier to add more elements because you don't have to "
@@ -1439,15 +1451,15 @@ msgstr ""
1439
1451
"virgule à la ligne précédente. Les lignes peuvent aussi être réorganisées "
1440
1452
"sans créer une erreur de syntaxe."
1441
1453
1442
- #: faq/design.rst:755
1454
+ #: faq/design.rst:764
1443
1455
msgid ""
1444
1456
"Accidentally omitting the comma can lead to errors that are hard to "
1445
1457
"diagnose. For example::"
1446
1458
msgstr ""
1447
1459
"L'omission accidentelle de la virgule peut entraîner des erreurs difficiles "
1448
1460
"à diagnostiquer, par exemple ::"
1449
1461
1450
- #: faq/design.rst:765
1462
+ #: faq/design.rst:774
1451
1463
msgid ""
1452
1464
"This list looks like it has four elements, but it actually contains three: "
1453
1465
"\" fee\" , \" fiefoo\" and \" fum\" . Always adding the comma avoids this source "
@@ -1457,7 +1469,7 @@ msgstr ""
1457
1469
"trois : \" *fee*\" , \" *fiefoo*\" et \" *fum*\" . Toujours ajouter la virgule "
1458
1470
"permet d'éviter cette source d'erreur."
1459
1471
1460
- #: faq/design.rst:768
1472
+ #: faq/design.rst:777
1461
1473
msgid ""
1462
1474
"Allowing the trailing comma may also make programmatic code generation "
1463
1475
"easier."
0 commit comments