8000 Translate library/copy.po (#321) · python/python-docs-fr@6a18cf0 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 6a18cf0

Browse files
CelandeJulienPalard
authored andcommitted
Translate library/copy.po (#321)
* Translate library/copy.po Closes #309
1 parent c1b5d56 commit 6a18cf0

File tree

1 file changed

+62
-10
lines changed

1 file changed

+62
-10
lines changed

library/copy.po

Lines changed: 62 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,23 @@ msgstr ""
66
"Project-Id-Version: Python 3.6\n"
77
"Report-Msgid-Bugs-To: \n"
88
"POT-Creation-Date: 2017-08-10 00:49+0200\n"
9-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
10-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9+
"PO-Revision-Date: 2018-09-23 09:14+0200\n"
1110
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
1211
"Language: fr\n"
1312
"MIME-Version: 1.0\n"
1413
"Content-Type: text/plain; charset=UTF-8\n"
1514
"Content-Transfer-Encoding: 8bit\n"
15+
"Last-Translator: \n"
16+
"X-Generator: Poedit 2.0.4\n"
1617

18+
# Ce commentaire est valable pour l'ensemble du document. deep copy doit être traduit par copie profonde ou copie récursive ? Pour ma part, je pense que copie récursive est beaucoup plus explicite.
1719
#: ../Doc/library/copy.rst:2
1820
msgid ":mod:`copy` --- Shallow and deep copy operations"
19-
msgstr ""
21+
msgstr ":mod:`copy` --- Opérations de copie superficielle et récursive"
2022

2123
#: ../Doc/library/copy.rst:7
2224
msgid "**Source code:** :source:`Lib/copy.py`"
23-
msgstr ""
25+
msgstr "**Code source:** :source:`Lib/copy.py`"
2426

2527
#: ../Doc/library/copy.rst:11
2628
msgid ""
@@ -30,75 +32,100 @@ msgid ""
3032
"changing the other. This module provides generic shallow and deep copy "
3133
"operations (explained below)."
3234
msgstr ""
35+
"Les instructions d'affectation en Python ne copient pas les objets, elles "
36+
"créent des liens entre la cible et l'objet. Concernant les collections qui "
37+
"sont muables ou contiennent des éléments muables, une copie est parfois "
38+
"nécessaire, pour pouvoir modifier une copie sans modifier l'autre. Ce module "
39+
"met à disposition des opérations de copie génériques superficielle et "
40+
"récursive (comme expliqué ci-dessous)."
3341

3442
#: ../Doc/library/copy.rst:18
3543
msgid "Interface summary:"
36-
msgstr ""
44+
msgstr "Résumé de l'interface :"
3745

3846
#: ../Doc/library/copy.rst:22
3947
msgid "Return a shallow copy of *x*."
40-
msgstr ""
48+
msgstr "Renvoie une copie superficielle de *x*."
4149

4250
#: ../Doc/library/copy.rst:27
4351
msgid "Return a deep copy of *x*."
44-
msgstr ""
52+
msgstr "Renvoie une copie récursive de *x*."
4553

4654
#: ../Doc/library/copy.rst:32
4755
msgid "Raised for module specific errors."
48-
msgstr ""
56+
msgstr "Levée pour les erreurs spécifiques au module."
4957

5058
#: ../Doc/library/copy.rst:35
5159
msgid ""
5260
"The difference between shallow and deep copying is only relevant for "
5361
"compound objects (objects that contain other objects, like lists or class "
5462
"instances):"
5563
msgstr ""
64+
"La différence entre copie superficielle et récursive n'est pertinente que "
65+
"pour les objets composés (objets contenant d'autres objets, comme des listes "
66+
"ou des instances de classe) :"
5667

5768
#: ../Doc/library/copy.rst:38
5869
msgid ""
5970
"A *shallow copy* constructs a new compound object and then (to the extent "
6071
"possible) inserts *references* into it to the objects found in the original."
6172
msgstr ""
73+
"Une *copie superficielle* construit un nouvel objet composé puis (dans la "
74+
"mesure du possible) insère dans l'objet composé des *références* aux objets "
75+
"trouvés dans l'original."
6276

6377
#: ../Doc/library/copy.rst:41
6478
msgid ""
6579
"A *deep copy* constructs a new compound object and then, recursively, "
6680
"inserts *copies* into it of the objects found in the original."
6781
msgstr ""
82+
"Une *copie récursive (ou profonde)* construit un nouvel objet composé puis, "
83+
"récursivement, insère dans l'objet composé des *copies* des objets trouvés "
84+
"dans l'objet original."
6885

6986
#: ../Doc/library/copy.rst:44
7087
msgid ""
7188
"Two problems often exist with deep copy operations that don't exist with "
7289
"shallow copy operations:"
7390
msgstr ""
91+
"On rencontre souvent deux problèmes avec les opérations de copie récursive "
92+
"qui n'existent pas avec les opérations de copie superficielle :"
7493

7594
#: ../Doc/library/copy.rst:47
7695
msgid ""
7796
"Recursive objects (compound objects that, directly or indirectly, contain a "
7897
"reference to themselves) may cause a recursive loop."
7998
msgstr ""
99+
"Les objets récursifs (objets composés qui, directement ou indirectement, "
100+
"contiennent une référence à eux-mêmes) peuvent causer une boucle récursive."
80101

81102
#: ../Doc/library/copy.rst:50
82103
msgid ""
83104
"Because deep copy copies everything it may copy too much, such as data which "
84105
"is intended to be shared between copies."
85106
msgstr ""
107+
"Comme une copie récursive copie tout, elle peut en copier trop, par exemple "
108+
"des données qui sont destinées à être partagées entre différentes copies."
86109

87110
#: ../Doc/library/copy.rst:53
88111
msgid "The :func:`deepcopy` function avoids these problems by:"
89-
msgstr ""
112+
msgstr "La fonction :func:`deepcopy` évite ces problèmes en :"
90113

91114
#: ../Doc/library/copy.rst:55
92115
msgid ""
93116
"keeping a \"memo\" dictionary of objects already copied during the current "
94117
"copying pass; and"
95118
msgstr ""
119+
"gardant un dictionnaire \"memo\" d'objets déjà copiés durant la phase de "
120+
"copie actuelle ; et"
96121

97122
#: ../Doc/library/copy.rst:58
98123
msgid ""
99124
"letting user-defined classes override the copying operation or the set of "
100125
"components copied."
101126
msgstr ""
127+
"laissant les classes créées par l'utilisateur écraser l'opération de copie "
128+
"ou l'ensemble de composants copiés."
102129

103130
#: ../Doc/library/copy.rst:61
104131
msgid ""
@@ -108,21 +135,35 @@ msgid ""
108135
"unchanged; this is compatible with the way these are treated by the :mod:"
109136
"`pickle` module."
110137
msgstr ""
138+
"Ce module ne copie pas les types tels que module, méthode, trace d'appels, "
139+
"cadre de pile, fichier, socket, fenêtre, tableau, ou tout autre type "
140+
"similaire. Il \"copie\" les fonctions et les classes (superficiellement et "
141+
"récursivement), en retournant l'objet original inchangé ; c'est compatible "
142+
"avec la manière dont ils sont traités par le module :mod:`pickle`."
111143

112144
#: ../Doc/library/copy.rst:66
113145
msgid ""
114146
"Shallow copies of dictionaries can be made using :meth:`dict.copy`, and of "
115147
"lists by assigning a slice of the entire list, for example, ``copied_list = "
116148
"original_list[:]``."
117149
msgstr ""
150+
"Les copies superficielles de dictionnaires peuvent être faites en utilisant :"
151+
"meth:`dict.copy`, et de listes en affectant un ``slice`` de la liste, par "
152+
"exemple, ``copied_list = original_list[:]``."
118153

119154
#: ../Doc/library/copy.rst:72
155+
#, fuzzy
120156
msgid ""
121157
"Classes can use the same interfaces to control copying that they use to "
122158
"control pickling. See the description of module :mod:`pickle` for "
123159
"information on these methods. In fact, the :mod:`copy` module uses the "
124160
"registered pickle functions from the :mod:`copyreg` module."
125161
msgstr ""
162+
"Les classes peuvent utiliser les mêmes interfaces de contrôle que celles "
163+
"utilisées pour la sérialisation. Voir la description du module :mod:`pickle` "
164+
"pour plus d'informations sur ces méthodes. En effet, le module :mod:`copy` "
165+
"utilise les fonctions de sérialisation enregistrées à partir du module :mod:"
166+
"`copyreg`."
126167

127168
#: ../Doc/library/copy.rst:81
128169
msgid ""
@@ -135,13 +176,24 @@ msgid ""
135176
"func:`deepcopy` function with the component as first argument and the memo "
136177
"dictionary as second argument."
137178
msgstr ""
179+
"Afin qu'une classe définisse sa propre implémentation de copie, elle peut "
180+
"définir les méthodes spéciales :meth:`__copy__` et :meth:`__deepcopy__`. La "
181+
"première est appelée pour implémenter l'opération de copie superficielle ; "
182+
"aucun argument supplémentaire n'est passé. La seconde est appelée pour "
183+
"implémenter l'opération de copie récursive ; elle reçoit un argument, le "
184+
"dictionnaire `memo`. Si l'implémentation de :meth:`__deepcopy__` a besoin de "
185+
"faire une copie récursive d'un composant, elle devrait appeler la fonction :"
186+
"func:`deepcopy` avec le composant comme premier argument et le dictionnaire "
187+
"`memo` comme second argument."
138188

139189
#: ../Doc/library/copy.rst:93
140190
msgid "Module :mod:`pickle`"
141-
msgstr ""
191+
msgstr "Module :mod:`pickle`"
142192

143193
#: ../Doc/library/copy.rst:93
144194
msgid ""
145195
"Discussion of the special methods used to support object state retrieval and "
146196
"restoration."
147197
msgstr ""
198+
"Discussion sur les méthodes spéciales utilisées pour gérer la récupération "
199+
"et la restauration de l'état d'un objet."

0 commit comments

Comments
 (0)
0