Stdtypes: 10 more.
This commit is contained in:
parent 1177296be6
commit 650fc0a207
1 changed files with 25 additions and 5 deletions
| | @ -8,7 +8,7 @@ msgstr "" | |||
"Project-Id-Version: Python 3.6\n" | ||||
"Report-Msgid-Bugs-To: \n" | ||||
"POT-Creation-Date: 2017-05-27 19:40+0200\n" | ||||
"PO-Revision-Date: 2017-06-05 21:57+0200\n" | ||||
"PO-Revision-Date: 2017-06-06 23:45+0200\n" | ||||
"Last-Translator: Julien Palard <julien@palard.fr>\n" | ||||
"Language-Team: \n" | ||||
"Language: fr\n" | ||||
| | @ -5875,6 +5875,14 @@ msgid "" | |||
"exc:`KeyError` is raised. :meth:`__missing__` must be a method; it cannot be " | ||||
"an instance variable::" | ||||
msgstr "" | ||||
"Si une sous-classe de *dict* définit une méthode :meth:`__missing__` et que " | ||||
"*key* manque, l'opération ``d[key]`` appelle cette méthode avec la clef " | ||||
"*key* en argument. L'opération ``d[key]`` renverra la valeur, ou lèvera " | ||||
"l'exception renvoyée ou levée par l'appel à ``__missing__(key)``. Aucune " | ||||
"autre opération ni méthode n'appellent :meth:`__missing__`. If :meth:" | ||||
"`__missing__` n'est pas définie, une exception :exc:`KeyError` est levée. :" | ||||
"meth:`__missing__` doit être une méthode; ça ne peut être une variable " | ||||
"d'instance." | ||||
| ||||
#: ../Doc/library/stdtypes.rst:4091 | ||||
msgid "" | ||||
| | @ -5882,30 +5890,37 @@ msgid "" | |||
"Counter`. A different ``__missing__`` method is used by :class:`collections." | ||||
"defaultdict`." | ||||
msgstr "" | ||||
"L'exemple ci-dessus montre une partie de l'implémentation de :class:" | ||||
"`collections.Counter`. :class:`collections.defaultdict` implémente aussi " | ||||
"``__missing__``." | ||||
| ||||
#: ../Doc/library/stdtypes.rst:4097 | ||||
msgid "Set ``d[key]`` to *value*." | ||||
msgstr "" | ||||
msgstr "Assigne ``d[key]`` à *value*." | ||||
| ||||
#: ../Doc/library/stdtypes.rst:4101 | ||||
msgid "" | ||||
"Remove ``d[key]`` from *d*. Raises a :exc:`KeyError` if *key* is not in the " | ||||
"map." | ||||
msgstr "" | ||||
"Supprime ``d[key]`` de *d*. Lève une exception :exc:`KeyError` si *key* " | ||||
"n'est pas dans le dictionnaire." | ||||
| ||||
#: ../Doc/library/stdtypes.rst:4106 | ||||
msgid "Return ``True`` if *d* has a key *key*, else ``False``." | ||||
msgstr "" | ||||
msgstr "Renvoie ``True`` si *d* a la clef *key*, sinon ``False``." | ||||
| ||||
#: ../Doc/library/stdtypes.rst:4110 | ||||
msgid "Equivalent to ``not key in d``." | ||||
msgstr "" | ||||
msgstr "Équivalent à ``not key in d``." | ||||
| ||||
#: ../Doc/library/stdtypes.rst:4114 | ||||
msgid "" | ||||
"Return an iterator over the keys of the dictionary. This is a shortcut for " | ||||
"``iter(d.keys())``." | ||||
msgstr "" | ||||
"Renvoie un itérateur sur les clefs du dictionnaire. C'est un raccourci pour " | ||||
"``iter(d.keys())``." | ||||
| ||||
#: ../Doc/library/stdtypes.rst:4119 | ||||
msgid "Remove all items from the dictionary." | ||||
| | @ -5913,11 +5928,13 @@ msgstr "Supprime tous les éléments du dictionnaire." | |||
| ||||
#: ../Doc/library/stdtypes.rst:4123 | ||||
msgid "Return a shallow copy of the dictionary." | ||||
msgstr "" | ||||
msgstr "Renvoie une copie de surface du dictionnaire." | ||||
| ||||
#: ../Doc/library/stdtypes.rst:4127 | ||||
msgid "Create a new dictionary with keys from *seq* and values set to *value*." | ||||
msgstr "" | ||||
"Crée un nouveau dictionnaire avec les clefs de *seq* et les valeurs à " | ||||
"*value*." | ||||
| ||||
#: ../Doc/library/stdtypes.rst:4129 | ||||
msgid "" | ||||
| | @ -5933,6 +5950,9 @@ msgid "" | |||
"*default* is not given, it defaults to ``None``, so that this method never " | ||||
"raises a :exc:`KeyError`." | ||||
msgstr "" | ||||
"Renvoie la valeur de *key* si *key* est dans le dictionnaire, sinon " | ||||
"*default*. Si *default* n'est pas donné, il vaut ``None`` par défaut, de " | ||||
"manière à ce que cette méthode ne lève jamais :exc:`KeyError`." | ||||
| ||||
#: ../Doc/library/stdtypes.rst:4140 | ||||
msgid "" | ||||
| | | |||
Loading…
Add table
Add a link
Reference in a new issue