8000 Stdtypes: 10 more. · python/python-docs-fr@650fc0a · GitHub
[go: up one dir, main page]

Skip to content

Commit 650fc0a

Browse files
committed
Stdtypes: 10 more.
1 parent 1177296 commit 650fc0a

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

library/stdtypes.po

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: Python 3.6\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2017-05-27 19:40+0200\n"
11-
"PO-Revision-Date: 2017-06-05 21:57+0200\n"
11+
"PO-Revision-Date: 2017-06-06 23:45+0200\n"
1212
"Last-Translator: Julien Palard <julien@palard.fr>\n"
1313
"Language-Team: \n"
1414
"Language: fr\n"
@@ -5875,49 +5875,66 @@ msgid ""
58755875
"exc:`KeyError` is raised. :meth:`__missing__` must be a method; it cannot be "
58765876
"an instance variable::"
58775877
msgstr ""
5878+
"Si une sous-classe de *dict* définit une méthode :meth:`__missing__` et que "
5879+
"*key* manque, l'opération ``d[key]`` appelle cette méthode avec la clef "
5880+
"*key* en argument. L'opération ``d[key]`` renverra la valeur, ou lèvera "
5881+
"l'exception renvoyée ou levée par l'appel à ``__missing__(key)``. Aucune "
5882+
"autre opération ni méthode n'appellent :meth:`__missing__`. If :meth:"
5883+
"`__missing__` n'est pas définie, une exception :exc:`KeyError` est levée. :"
5884+
"meth:`__missing__` doit être une méthode; ça ne peut être une variable "
5885+
"d'instance."
58785886

58795887
#: ../Doc/library/stdtypes.rst:4091
58805888
msgid ""
58815889
"The example above shows part of the implementation of :class:`collections."
58825890
"Counter`. A different ``__missing__`` method is used by :class:`collections."
58835891
"defaultdict`."
58845892
msgstr ""
5893+
"L'exemple ci-dessus montre une partie de l'implémentation de :class:"
5894+
"`collections.Counter`. :class:`collections.defaultdict` implémente aussi "
5895+
"``__missing__``."
58855896

58865897
#: ../Doc/library/stdtypes.rst:4097
58875898
msgid "Set ``d[key]`` to *value*."
5888-
msgstr ""
5899+
msgstr "Assigne ``d[key]`` à *value*."
58895900

58905901
#: ../Doc/library/stdtypes.rst:4101
58915902
msgid ""
58925903
"Remove ``d[key]`` from *d*. Raises a :exc:`KeyError` if *key* is not in the "
58935904
"map."
58945905
msgstr ""
5906+
"Supprime ``d[key]`` de *d*. Lève une exception :exc:`KeyError` si *key* "
5907+
"n'est pas dans le dictionnaire."
58955908

58965909
#: ../Doc/library/stdtypes.rst:4106
58975910
msgid "Return ``True`` if *d* has a key *key*, else ``False``."
5898-
msgstr ""
5911+
msgstr "Renvoie ``True`` si *d* a la clef *key*, sinon ``False``."
58995912

59005913
#: ../Doc/library/stdtypes.rst:4110
59015914
msgid "Equivalent to ``not key in d``."
5902-
msgstr ""
5915+
msgstr "Équivalent à ``not key in d``."
59035916

59045917
#: ../Doc/library/stdtypes.rst:4114
59055918
msgid ""
59065919
"Return an iterator over the keys of the dictionary. This is a shortcut for "
59075920
"``iter(d.keys())``."
59085921
msgstr ""
5922+
"Renvoie un itérateur sur les clefs du dictionnaire. C'est un raccourci pour "
5923+
"``iter(d.keys())``."
59095924

59105925
#: ../Doc/library/stdtypes.rst:4119
59115926
msgid "Remove all items from the dictionary."
59125927
msgstr "Supprime tous les éléments du dictionnaire."
59135928

59145929
#: ../Doc/library/stdtypes.rst:4123
59155930
msgid "Return a shallow copy of the dictionary."
5916-
msgstr ""
5931+
msgstr "Renvoie une copie de surface du dictionnaire."
59175932

59185933
#: ../Doc/library/stdtypes.rst:4127
59195934
msgid "Create a new dictionary with keys from *seq* and values set to *value*."
59205935
msgstr ""
5936+
"Crée un nouveau dictionnaire avec les clefs de *seq* et les valeurs à "
5937+
"*value*."
59215938

59225939
#: ../Doc/library/stdtypes.rst:4129
59235940
msgid ""
@@ -5933,6 +5950,9 @@ msgid ""
59335950
"*default* is not given, it defaults to ``None``, so that this method never "
59345951
"raises a :exc:`KeyError`."
59355952
msgstr ""
5953+
"Renvoie la valeur de *key* si *key* est dans le dictionnaire, sinon "
5954+
"*default*. Si *default* n'est pas donné, il vaut ``None`` par défaut, de "
5955+
"manière à ce que cette méthode ne lève jamais :exc:`KeyError`."
59365956

59375957
#: ../Doc/library/stdtypes.rst:4140
59385958
msgid ""

0 commit comments

Comments
 (0)
0