1
0
Fork 0
python-docs-fr/library/copy.po

201 lines
8.2 KiB
Plaintext
Raw Permalink Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2018-07-04 09:08:42 +00:00
# For licence information, see README file.
2016-10-30 09:46:26 +00:00
#
msgid ""
msgstr ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2016-10-30 09:46:26 +00:00
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-27 10:27+0100\n"
"PO-Revision-Date: 2019-02-21 17:18+0100\n"
2018-10-13 15:54:03 +00:00
"Last-Translator: \n"
2018-07-04 09:14:25 +00:00
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
2017-05-23 22:40:56 +00:00
"Language: fr\n"
2016-10-30 09:46:26 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.0.2\n"
2016-10-30 09:46:26 +00:00
#: library/copy.rst:2
2016-10-30 09:46:26 +00:00
msgid ":mod:`copy` --- Shallow and deep copy operations"
msgstr ":mod:`copy` — Opérations de copie superficielle et récursive"
2016-10-30 09:46:26 +00:00
#: library/copy.rst:7
2016-10-30 09:46:26 +00:00
msgid "**Source code:** :source:`Lib/copy.py`"
2018-09-25 07:04:42 +00:00
msgstr "**Code source :** :source:`Lib/copy.py`"
2016-10-30 09:46:26 +00:00
#: library/copy.rst:11
2016-10-30 09:46:26 +00:00
msgid ""
"Assignment statements in Python do not copy objects, they create bindings "
"between a target and an object. For collections that are mutable or contain "
"mutable items, a copy is sometimes needed so one can change one copy without "
"changing the other. This module provides generic shallow and deep copy "
"operations (explained below)."
msgstr ""
"Les instructions d'affectation en Python ne copient pas les objets, elles "
"créent des liens entre la cible et l'objet. Concernant les collections qui "
"sont muables ou contiennent des éléments muables, une copie est parfois "
"nécessaire, pour pouvoir modifier une copie sans modifier l'autre. Ce module "
"met à disposition des opérations de copie génériques superficielle et "
"récursive (comme expliqué ci-dessous)."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:18
2016-10-30 09:46:26 +00:00
msgid "Interface summary:"
2018-09-25 07:04:42 +00:00
msgstr "Résumé de l'interface :"
2016-10-30 09:46:26 +00:00
#: library/copy.rst:22
2016-10-30 09:46:26 +00:00
msgid "Return a shallow copy of *x*."
msgstr "Renvoie une copie superficielle de *x*."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:27
2016-10-30 09:46:26 +00:00
msgid "Return a deep copy of *x*."
msgstr "Renvoie une copie récursive de *x*."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:32
2016-10-30 09:46:26 +00:00
msgid "Raised for module specific errors."
msgstr "Levée pour les erreurs spécifiques au module."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:36
2016-10-30 09:46:26 +00:00
msgid ""
"The difference between shallow and deep copying is only relevant for "
"compound objects (objects that contain other objects, like lists or class "
"instances):"
msgstr ""
"La différence entre copie superficielle et récursive n'est pertinente que "
"pour les objets composés (objets contenant d'autres objets, comme des listes "
2018-09-25 07:04:42 +00:00
"ou des instances de classe) :"
2016-10-30 09:46:26 +00:00
#: library/copy.rst:39
2016-10-30 09:46:26 +00:00
msgid ""
"A *shallow copy* constructs a new compound object and then (to the extent "
"possible) inserts *references* into it to the objects found in the original."
msgstr ""
"Une *copie superficielle* construit un nouvel objet composé puis (dans la "
"mesure du possible) insère dans l'objet composé des *références* aux objets "
"trouvés dans l'original."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:42
2016-10-30 09:46:26 +00:00
msgid ""
"A *deep copy* constructs a new compound object and then, recursively, "
"inserts *copies* into it of the objects found in the original."
msgstr ""
"Une *copie récursive (ou profonde)* construit un nouvel objet composé puis, "
"récursivement, insère dans l'objet composé des *copies* des objets trouvés "
"dans l'objet original."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:45
2016-10-30 09:46:26 +00:00
msgid ""
"Two problems often exist with deep copy operations that don't exist with "
"shallow copy operations:"
msgstr ""
"On rencontre souvent deux problèmes avec les opérations de copie récursive "
2018-09-25 07:04:42 +00:00
"qui n'existent pas avec les opérations de copie superficielle :"
2016-10-30 09:46:26 +00:00
#: library/copy.rst:48
2016-10-30 09:46:26 +00:00
msgid ""
"Recursive objects (compound objects that, directly or indirectly, contain a "
"reference to themselves) may cause a recursive loop."
msgstr ""
"Les objets récursifs (objets composés qui, directement ou indirectement, "
"contiennent une référence à eux-mêmes) peuvent causer une boucle récursive."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:51
2016-10-30 09:46:26 +00:00
msgid ""
2017-05-27 17:46:38 +00:00
"Because deep copy copies everything it may copy too much, such as data which "
"is intended to be shared between copies."
2016-10-30 09:46:26 +00:00
msgstr ""
"Comme une copie récursive copie tout, elle peut en copier trop, par exemple "
"des données qui sont destinées à être partagées entre différentes copies."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:54
2016-10-30 09:46:26 +00:00
msgid "The :func:`deepcopy` function avoids these problems by:"
2018-09-25 07:04:42 +00:00
msgstr "La fonction :func:`deepcopy` évite ces problèmes en :"
2016-10-30 09:46:26 +00:00
#: library/copy.rst:56
2016-10-30 09:46:26 +00:00
msgid ""
2018-11-29 15:13:39 +00:00
"keeping a ``memo`` dictionary of objects already copied during the current "
2016-10-30 09:46:26 +00:00
"copying pass; and"
msgstr ""
"gardant en mémoire dans un dictionnaire ``memo`` les objets déjà copiés "
"durant la phase de copie actuelle ; et"
2016-10-30 09:46:26 +00:00
#: library/copy.rst:59
2016-10-30 09:46:26 +00:00
msgid ""
"letting user-defined classes override the copying operation or the set of "
"components copied."
msgstr ""
"laissant les classes créées par l'utilisateur écraser l'opération de copie "
"ou l'ensemble de composants copiés."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:62
#, fuzzy
2016-10-30 09:46:26 +00:00
msgid ""
"This module does not copy types like module, method, stack trace, stack "
"frame, file, socket, window, or any similar types. It does \"copy\" "
2016-10-30 09:46:26 +00:00
"functions and classes (shallow and deeply), by returning the original object "
"unchanged; this is compatible with the way these are treated by the :mod:"
"`pickle` module."
msgstr ""
"Ce module ne copie pas les types tels que module, méthode, trace d'appels, "
"cadre de pile, fichier, socket, fenêtre, tableau, ou tout autre type "
"similaire. Il \"copie\" les fonctions et les classes (superficiellement et "
2018-09-25 07:04:42 +00:00
"récursivement), en retournant l'objet original inchangé ; c'est compatible "
"avec la manière dont ils sont traités par le module :mod:`pickle`."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:67
2016-10-30 09:46:26 +00:00
msgid ""
"Shallow copies of dictionaries can be made using :meth:`dict.copy`, and of "
"lists by assigning a slice of the entire list, for example, ``copied_list = "
"original_list[:]``."
msgstr ""
"Les copies superficielles de dictionnaires peuvent être faites en utilisant :"
"meth:`dict.copy`, et de listes en affectant un ``slice`` de la liste, par "
"exemple, ``copied_list = original_list[:]``."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:73
2016-10-30 09:46:26 +00:00
msgid ""
"Classes can use the same interfaces to control copying that they use to "
"control pickling. See the description of module :mod:`pickle` for "
"information on these methods. In fact, the :mod:`copy` module uses the "
"registered pickle functions from the :mod:`copyreg` module."
msgstr ""
"Les classes peuvent utiliser les mêmes interfaces de contrôle que celles "
"utilisées pour la sérialisation. Voir la description du module :mod:`pickle` "
"pour plus d'informations sur ces méthodes. En effet, le module :mod:`copy` "
"utilise les fonctions de sérialisation enregistrées à partir du module :mod:"
"`copyreg`."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:82
#, fuzzy
2016-10-30 09:46:26 +00:00
msgid ""
"In order for a class to define its own copy implementation, it can define "
"special methods :meth:`__copy__` and :meth:`__deepcopy__`. The former is "
"called to implement the shallow copy operation; no additional arguments are "
"passed. The latter is called to implement the deep copy operation; it is "
2018-11-29 15:13:39 +00:00
"passed one argument, the ``memo`` dictionary. If the :meth:`__deepcopy__` "
2016-10-30 09:46:26 +00:00
"implementation needs to make a deep copy of a component, it should call the :"
"func:`deepcopy` function with the component as first argument and the memo "
"dictionary as second argument. The memo dictionary should be treated as an "
"opaque object."
2016-10-30 09:46:26 +00:00
msgstr ""
"Afin qu'une classe définisse sa propre implémentation de copie, elle peut "
"définir les méthodes spéciales :meth:`__copy__` et :meth:`__deepcopy__`. La "
2018-09-25 07:04:42 +00:00
"première est appelée pour implémenter l'opération de copie superficielle ; "
"aucun argument supplémentaire n'est passé. La seconde est appelée pour "
2018-09-25 07:04:42 +00:00
"implémenter l'opération de copie récursive ; elle reçoit un argument, le "
"dictionnaire ``memo``. Si l'implémentation de :meth:`__deepcopy__` a besoin "
"de faire une copie récursive d'un composant, elle doit appeler la fonction :"
"func:`deepcopy` avec le composant comme premier argument et le dictionnaire "
"*memo* comme second argument."
2016-10-30 09:46:26 +00:00
#: library/copy.rst:95
2016-10-30 09:46:26 +00:00
msgid "Module :mod:`pickle`"
msgstr "Module :mod:`pickle`"
2016-10-30 09:46:26 +00:00
#: library/copy.rst:95
2016-10-30 09:46:26 +00:00
msgid ""
"Discussion of the special methods used to support object state retrieval and "
"restoration."
msgstr ""
"Discussion sur les méthodes spéciales utilisées pour gérer la récupération "
"et la restauration de l'état d'un objet."