Repository navigation
Expand file tree
/
Copy pathcopy.po
More file actions
269 lines (237 loc) · 10.5 KB
/
Copy pathcopy.po
File metadata and controls
269 lines (237 loc) · 10.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
# German translation of the Python documentation.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
#
# Translators:
# Swen Bachmann, 2026
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-08-22 12:07+0200\n"
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
"Last-Translator: Swen Bachmann\n"
"Language-Team: German (https://github.com/python/python-docs-de)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../../library/copy.rst:2
msgid ":mod:`!copy` --- Shallow and deep copy operations"
msgstr ":mod:`!copy` --- Flache und tiefe Kopieroperationen"
#: ../../library/copy.rst:7
msgid "**Source code:** :source:`Lib/copy.py`"
msgstr "**Quellcode:** :source:`Lib/copy.py`"
#: ../../library/copy.rst:11
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 ""
"Zuweisungen in Python kopieren keine Objekte, sondern erzeugen Bindungen "
"zwischen einem Ziel und einem Objekt. Bei Collections, die veränderlich sind "
"oder veränderliche Elemente enthalten, braucht man manchmal eine Kopie, "
"damit man eine Kopie ändern kann, ohne die andere zu verändern. Dieses Modul "
"stellt allgemeine Operationen für flache und tiefe Kopien bereit (siehe "
"unten)."
#: ../../library/copy.rst:18
msgid "Interface summary:"
msgstr "Übersicht über die Schnittstelle:"
#: ../../library/copy.rst:22
msgid "Return a shallow copy of *obj*."
msgstr "Gibt eine flache Kopie von *obj* zurück."
#: ../../library/copy.rst:27
msgid "Return a deep copy of *obj*."
msgstr "Gibt eine tiefe Kopie von *obj* zurück."
#: ../../library/copy.rst:32
msgid ""
"Creates a new object of the same type as *obj*, replacing fields with values "
"from *changes*."
msgstr ""
"Erzeugt ein neues Objekt desselben Typs wie *obj*, wobei Felder durch Werte "
"aus *changes* ersetzt werden."
#: ../../library/copy.rst:40
msgid "Raised for module specific errors."
msgstr "Wird bei modulspezifischen Fehlern ausgelöst."
#: ../../library/copy.rst:44
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 ""
"Der Unterschied zwischen flachen und tiefen Kopien ist nur bei "
"zusammengesetzten Objekten relevant (Objekte, die andere Objekte enthalten, "
"etwa Listen oder Klasseninstanzen):"
#: ../../library/copy.rst:47
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 ""
"Eine *flache Kopie* erzeugt ein neues zusammengesetztes Objekt und fügt "
"darin (soweit möglich) *Referenzen* auf die Objekte ein, die sich im "
"Original befinden."
#: ../../library/copy.rst:50
msgid ""
"A *deep copy* constructs a new compound object and then, recursively, "
"inserts *copies* into it of the objects found in the original."
msgstr ""
"Eine *tiefe Kopie* erzeugt ein neues zusammengesetztes Objekt und fügt darin "
"rekursiv *Kopien* der Objekte ein, die sich im Original befinden."
#: ../../library/copy.rst:53
msgid ""
"Two problems often exist with deep copy operations that don't exist with "
"shallow copy operations:"
msgstr ""
"Bei tiefen Kopien treten oft zwei Probleme auf, die es bei flachen Kopien "
"nicht gibt:"
#: ../../library/copy.rst:56
msgid ""
"Recursive objects (compound objects that, directly or indirectly, contain a "
"reference to themselves) may cause a recursive loop."
msgstr ""
"Rekursive Objekte (zusammengesetzte Objekte, die direkt oder indirekt eine "
"Referenz auf sich selbst enthalten) können eine rekursive Endlosschleife "
"verursachen."
#: ../../library/copy.rst:59
msgid ""
"Because deep copy copies everything it may copy too much, such as data which "
"is intended to be shared between copies."
msgstr ""
"Da eine tiefe Kopie alles kopiert, kann sie zu viel kopieren, zum Beispiel "
"Daten, die von den Kopien gemeinsam genutzt werden sollen."
#: ../../library/copy.rst:62
msgid "The :func:`deepcopy` function avoids these problems by:"
msgstr "Die Funktion :func:`deepcopy` vermeidet diese Probleme, indem sie:"
#: ../../library/copy.rst:64
msgid ""
"keeping a ``memo`` dictionary of objects already copied during the current "
"copying pass; and"
msgstr ""
"während des aktuellen Kopiervorgangs ein ``memo``-Dictionary der bereits "
"kopierten Objekte führt und"
#: ../../library/copy.rst:67
msgid ""
"letting user-defined classes override the copying operation or the set of "
"components copied."
msgstr ""
"benutzerdefinierten Klassen erlaubt, die Kopieroperation oder die Menge der "
"kopierten Komponenten zu überschreiben."
#: ../../library/copy.rst:70
msgid ""
"This module does not copy types like module, method, stack trace, stack "
"frame, file, socket, window, or any similar types. It does \"copy\" "
"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 ""
"Dieses Modul kopiert keine Typen wie Modul, Methode, Traceback, Stack-Frame, "
"Datei, Socket, Fenster oder ähnliche Typen. Funktionen und Klassen werden "
"„kopiert“ (flach und tief), indem das Originalobjekt unverändert "
"zurückgegeben wird; das ist kompatibel damit, wie das Modul :mod:`pickle` "
"diese behandelt."
#: ../../library/copy.rst:75
msgid ""
"Shallow copies of many collections can be made using the "
"corresponding :meth:`!copy` method (such "
"as :meth:`list.copy`, :meth:`dict.copy` or :meth:`set.copy`), and of "
"sequences (such as lists or bytearrays) by making a slice of the entire "
"sequence (``sequence[:]``). However, these methods and slicing can create an "
"instance of the base type when copying an instance of a subclass, "
"whereas :func:`copy.copy` normally returns an instance of the same type."
msgstr ""
"Flache Kopien vieler Collections lassen sich mit der jeweiligen :meth:`!"
"copy`-Methode erstellen (etwa :meth:`list.copy`, :meth:`dict.copy` "
"oder :meth:`set.copy`), bei Sequenzen (etwa Listen oder Bytearrays) auch mit "
"einem Slice der gesamten Sequenz (``sequence[:]``). Diese Methoden und das "
"Slicing können beim Kopieren einer Instanz einer Unterklasse jedoch eine "
"Instanz des Basistyps erzeugen, während :func:`copy.copy` normalerweise eine "
"Instanz desselben Typs zurückgibt."
#: ../../library/copy.rst:85
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 ""
"Klassen können dieselben Schnittstellen zur Steuerung des Kopierens "
"verwenden wie zur Steuerung des Picklings. Informationen zu diesen Methoden "
"stehen in der Beschreibung des Moduls :mod:`pickle`. Tatsächlich verwendet "
"das Modul :mod:`!copy` die registrierten Pickle-Funktionen aus dem "
"Modul :mod:`copyreg`."
#: ../../library/copy.rst:96
msgid ""
"In order for a class to define its own copy implementation, it can define "
"special methods :meth:`~object.__copy__` and :meth:`~object.__deepcopy__`."
msgstr ""
"Damit eine Klasse ihre eigene Kopierimplementierung definieren kann, kann "
"sie die speziellen Methoden :meth:`~object.__copy__` "
"und :meth:`~object.__deepcopy__` definieren."
#: ../../library/copy.rst:102
msgid ""
"Called to implement the shallow copy operation; no additional arguments are "
"passed."
msgstr ""
"Wird aufgerufen, um die flache Kopieroperation umzusetzen. Es werden keine "
"zusätzlichen Argumente übergeben."
#: ../../library/copy.rst:108
msgid ""
"Called to implement the deep copy operation; it is passed one argument, the "
"*memo* dictionary. If the ``__deepcopy__`` implementation needs to make a "
"deep copy of a component, it should call the :func:`~copy.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."
msgstr ""
"Wird aufgerufen, um die tiefe Kopieroperation umzusetzen. Es wird ein "
"Argument übergeben, das *memo*-Dictionary. Muss die Implementierung von "
"``__deepcopy__`` eine tiefe Kopie einer Komponente erstellen, sollte sie die "
"Funktion :func:`~copy.deepcopy` mit der Komponente als erstem und dem *memo*-"
"Dictionary als zweitem Argument aufrufen. Das *memo*-Dictionary sollte als "
"undurchsichtiges Objekt behandelt werden."
#: ../../library/copy.rst:118
msgid ""
"Function :func:`!copy.replace` is more limited than :func:`~copy.copy` "
"and :func:`~copy.deepcopy`, and only supports named tuples created "
"by :func:`~collections.namedtuple`, :mod:`dataclasses`, and other classes "
"which define method :meth:`~object.__replace__`."
msgstr ""
"Die Funktion :func:`!copy.replace` ist stärker eingeschränkt "
"als :func:`~copy.copy` und :func:`~copy.deepcopy` und unterstützt nur "
"benannte Tupel, die mit :func:`~collections.namedtuple` erzeugt "
"wurden, :mod:`dataclasses` sowie andere Klassen, die die "
"Methode :meth:`~object.__replace__` definieren."
#: ../../library/copy.rst:126
msgid ""
"This method should create a new object of the same type, replacing fields "
"with values from *changes*."
msgstr ""
"Diese Methode sollte ein neues Objekt desselben Typs erzeugen und Felder "
"durch Werte aus *changes* ersetzen."
#: ../../library/copy.rst:134
msgid "Module :mod:`pickle`"
msgstr "Modul :mod:`pickle`"
#: ../../library/copy.rst:135
msgid ""
"Discussion of the special methods used to support object state retrieval and "
"restoration."
msgstr ""
"Diskussion der speziellen Methoden, die das Abrufen und Wiederherstellen des "
"Objektzustands unterstützen."
#: ../../library/copy.rst:83
msgid "module"
msgstr "Modul"
#: ../../library/copy.rst:83
msgid "pickle"
msgstr "pickle"
#: ../../library/copy.rst:90
msgid "__copy__() (copy protocol)"
msgstr "__copy__() (Kopierprotokoll)"
#: ../../library/copy.rst:90
msgid "__deepcopy__() (copy protocol)"
msgstr "__deepcopy__() (Kopierprotokoll)"
#: ../../library/copy.rst:115
msgid "__replace__() (replace protocol)"
msgstr "__replace__() (Ersetzungsprotokoll)"