1- # SOME DESCRIPTIVE TITLE .
1+ # German translation of the Python documentation .
22# Copyright (C) 2001 Python Software Foundation
33# This file is distributed under the same license as the Python package.
4- # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4+ #
5+ # Translators:
6+ # Swen Bachmann, 2026
57#
68msgid ""
79msgstr ""
810"Project-Id-Version : Python 3.15\n "
911"Report-Msgid-Bugs-To : \n "
1012"POT-Creation-Date : 2026-08-22 12:07+0200\n "
1113"PO-Revision-Date : 2025-09-16 00:01+0000\n "
12- "Language-Team : German (https://app.transifex.com/python-doc/teams/5390/de/)\n "
14+ "Last-Translator : Swen Bachmann\n "
15+ "Language-Team : German (https://github.com/python/python-docs-de)\n "
1316"Language : de\n "
1417"MIME-Version : 1.0\n "
1518"Content-Type : text/plain; charset=UTF-8\n "
@@ -18,11 +21,11 @@ msgstr ""
1821
1922#: ../../library/copy.rst:2
2023msgid ":mod:`!copy` --- Shallow and deep copy operations"
21- msgstr ""
24+ msgstr ":mod:`!copy` --- Flache und tiefe Kopieroperationen "
2225
2326#: ../../library/copy.rst:7
2427msgid "**Source code:** :source:`Lib/copy.py`"
25- msgstr ""
28+ msgstr "**Quellcode:** :source:`Lib/copy.py` "
2629
2730#: ../../library/copy.rst:11
2831msgid ""
@@ -32,81 +35,108 @@ msgid ""
3235"changing the other. This module provides generic shallow and deep copy "
3336"operations (explained below)."
3437msgstr ""
38+ "Zuweisungen in Python kopieren keine Objekte, sondern erzeugen Bindungen "
39+ "zwischen einem Ziel und einem Objekt. Bei Collections, die veränderlich sind "
40+ "oder veränderliche Elemente enthalten, braucht man manchmal eine Kopie, "
41+ "damit man eine Kopie ändern kann, ohne die andere zu verändern. Dieses Modul "
42+ "stellt allgemeine Operationen für flache und tiefe Kopien bereit (siehe "
43+ "unten)."
3544
3645#: ../../library/copy.rst:18
3746msgid "Interface summary:"
38- msgstr ""
47+ msgstr "Übersicht über die Schnittstelle: "
3948
4049#: ../../library/copy.rst:22
4150msgid "Return a shallow copy of *obj*."
42- msgstr ""
51+ msgstr "Gibt eine flache Kopie von *obj* zurück. "
4352
4453#: ../../library/copy.rst:27
4554msgid "Return a deep copy of *obj*."
46- msgstr ""
55+ msgstr "Gibt eine tiefe Kopie von *obj* zurück. "
4756
4857#: ../../library/copy.rst:32
4958msgid ""
5059"Creates a new object of the same type as *obj*, replacing fields with values "
5160"from *changes*."
5261msgstr ""
62+ "Erzeugt ein neues Objekt desselben Typs wie *obj*, wobei Felder durch Werte "
63+ "aus *changes* ersetzt werden."
5364
5465#: ../../library/copy.rst:40
5566msgid "Raised for module specific errors."
56- msgstr ""
67+ msgstr "Wird bei modulspezifischen Fehlern ausgelöst. "
5768
5869#: ../../library/copy.rst:44
5970msgid ""
6071"The difference between shallow and deep copying is only relevant for "
6172"compound objects (objects that contain other objects, like lists or class "
6273"instances):"
6374msgstr ""
75+ "Der Unterschied zwischen flachen und tiefen Kopien ist nur bei "
76+ "zusammengesetzten Objekten relevant (Objekte, die andere Objekte enthalten, "
77+ "etwa Listen oder Klasseninstanzen):"
6478
6579#: ../../library/copy.rst:47
6680msgid ""
6781"A *shallow copy* constructs a new compound object and then (to the extent "
6882"possible) inserts *references* into it to the objects found in the original."
6983msgstr ""
84+ "Eine *flache Kopie* erzeugt ein neues zusammengesetztes Objekt und fügt "
85+ "darin (soweit möglich) *Referenzen* auf die Objekte ein, die sich im "
86+ "Original befinden."
7087
7188#: ../../library/copy.rst:50
7289msgid ""
7390"A *deep copy* constructs a new compound object and then, recursively, "
7491"inserts *copies* into it of the objects found in the original."
7592msgstr ""
93+ "Eine *tiefe Kopie* erzeugt ein neues zusammengesetztes Objekt und fügt darin "
94+ "rekursiv *Kopien* der Objekte ein, die sich im Original befinden."
7695
7796#: ../../library/copy.rst:53
7897msgid ""
7998"Two problems often exist with deep copy operations that don't exist with "
8099"shallow copy operations:"
81100msgstr ""
101+ "Bei tiefen Kopien treten oft zwei Probleme auf, die es bei flachen Kopien "
102+ "nicht gibt:"
82103
83104#: ../../library/copy.rst:56
84105msgid ""
85106"Recursive objects (compound objects that, directly or indirectly, contain a "
86107"reference to themselves) may cause a recursive loop."
87108msgstr ""
109+ "Rekursive Objekte (zusammengesetzte Objekte, die direkt oder indirekt eine "
110+ "Referenz auf sich selbst enthalten) können eine rekursive Endlosschleife "
111+ "verursachen."
88112
89113#: ../../library/copy.rst:59
90114msgid ""
91115"Because deep copy copies everything it may copy too much, such as data which "
92116"is intended to be shared between copies."
93117msgstr ""
118+ "Da eine tiefe Kopie alles kopiert, kann sie zu viel kopieren, zum Beispiel "
119+ "Daten, die von den Kopien gemeinsam genutzt werden sollen."
94120
95121#: ../../library/copy.rst:62
96122msgid "The :func:`deepcopy` function avoids these problems by:"
97- msgstr ""
123+ msgstr "Die Funktion :func:`deepcopy` vermeidet diese Probleme, indem sie: "
98124
99125#: ../../library/copy.rst:64
100126msgid ""
101127"keeping a ``memo`` dictionary of objects already copied during the current "
102128"copying pass; and"
103129msgstr ""
130+ "während des aktuellen Kopiervorgangs ein ``memo``-Dictionary der bereits "
131+ "kopierten Objekte führt und"
104132
105133#: ../../library/copy.rst:67
106134msgid ""
107135"letting user-defined classes override the copying operation or the set of "
108136"components copied."
109137msgstr ""
138+ "benutzerdefinierten Klassen erlaubt, die Kopieroperation oder die Menge der "
139+ "kopierten Komponenten zu überschreiben."
110140
111141#: ../../library/copy.rst:70
112142msgid ""
@@ -116,6 +146,11 @@ msgid ""
116146"unchanged; this is compatible with the way these are treated by "
117147"the :mod:`pickle` module."
118148msgstr ""
149+ "Dieses Modul kopiert keine Typen wie Modul, Methode, Traceback, Stack-Frame, "
150+ "Datei, Socket, Fenster oder ähnliche Typen. Funktionen und Klassen werden "
151+ "„kopiert“ (flach und tief), indem das Originalobjekt unverändert "
152+ "zurückgegeben wird; das ist kompatibel damit, wie das Modul :mod:`pickle` "
153+ "diese behandelt."
119154
120155#: ../../library/copy.rst:75
121156msgid ""
@@ -127,6 +162,13 @@ msgid ""
127162"instance of the base type when copying an instance of a subclass, "
128163"whereas :func:`copy.copy` normally returns an instance of the same type."
129164msgstr ""
165+ "Flache Kopien vieler Collections lassen sich mit der jeweiligen "
166+ ":meth:`!copy`-Methode erstellen (etwa :meth:`list.copy`, :meth:`dict.copy` "
167+ "oder :meth:`set.copy`), bei Sequenzen (etwa Listen oder Bytearrays) auch mit "
168+ "einem Slice der gesamten Sequenz (``sequence[:]``). Diese Methoden und das "
169+ "Slicing können beim Kopieren einer Instanz einer Unterklasse jedoch eine "
170+ "Instanz des Basistyps erzeugen, während :func:`copy.copy` normalerweise eine "
171+ "Instanz desselben Typs zurückgibt."
130172
131173#: ../../library/copy.rst:85
132174msgid ""
@@ -135,18 +177,28 @@ msgid ""
135177"information on these methods. In fact, the :mod:`!copy` module uses the "
136178"registered pickle functions from the :mod:`copyreg` module."
137179msgstr ""
180+ "Klassen können dieselben Schnittstellen zur Steuerung des Kopierens "
181+ "verwenden wie zur Steuerung des Picklings. Informationen zu diesen Methoden "
182+ "stehen in der Beschreibung des Moduls :mod:`pickle`. Tatsächlich verwendet "
183+ "das Modul :mod:`!copy` die registrierten Pickle-Funktionen aus dem Modul "
184+ ":mod:`copyreg`."
138185
139186#: ../../library/copy.rst:96
140187msgid ""
141188"In order for a class to define its own copy implementation, it can define "
142189"special methods :meth:`~object.__copy__` and :meth:`~object.__deepcopy__`."
143190msgstr ""
191+ "Damit eine Klasse ihre eigene Kopierimplementierung definieren kann, kann "
192+ "sie die speziellen Methoden :meth:`~object.__copy__` und "
193+ ":meth:`~object.__deepcopy__` definieren."
144194
145195#: ../../library/copy.rst:102
146196msgid ""
147197"Called to implement the shallow copy operation; no additional arguments are "
148198"passed."
149199msgstr ""
200+ "Wird aufgerufen, um die flache Kopieroperation umzusetzen. Es werden keine "
201+ "zusätzlichen Argumente übergeben."
150202
151203#: ../../library/copy.rst:108
152204msgid ""
@@ -156,6 +208,12 @@ msgid ""
156208"with the component as first argument and the *memo* dictionary as second "
157209"argument. The *memo* dictionary should be treated as an opaque object."
158210msgstr ""
211+ "Wird aufgerufen, um die tiefe Kopieroperation umzusetzen. Es wird ein "
212+ "Argument übergeben, das *memo*-Dictionary. Muss die Implementierung von "
213+ "``__deepcopy__`` eine tiefe Kopie einer Komponente erstellen, sollte sie die "
214+ "Funktion :func:`~copy.deepcopy` mit der Komponente als erstem und dem "
215+ "*memo*-Dictionary als zweitem Argument aufrufen. Das *memo*-Dictionary "
216+ "sollte als undurchsichtiges Objekt behandelt werden."
159217
160218#: ../../library/copy.rst:118
161219msgid ""
@@ -164,39 +222,48 @@ msgid ""
164222"by :func:`~collections.namedtuple`, :mod:`dataclasses`, and other classes "
165223"which define method :meth:`~object.__replace__`."
166224msgstr ""
225+ "Die Funktion :func:`!copy.replace` ist stärker eingeschränkt als "
226+ ":func:`~copy.copy` und :func:`~copy.deepcopy` und unterstützt nur benannte "
227+ "Tupel, die mit :func:`~collections.namedtuple` erzeugt wurden, "
228+ ":mod:`dataclasses` sowie andere Klassen, die die Methode "
229+ ":meth:`~object.__replace__` definieren."
167230
168231#: ../../library/copy.rst:126
169232msgid ""
170233"This method should create a new object of the same type, replacing fields "
171234"with values from *changes*."
172235msgstr ""
236+ "Diese Methode sollte ein neues Objekt desselben Typs erzeugen und Felder "
237+ "durch Werte aus *changes* ersetzen."
173238
174239#: ../../library/copy.rst:134
175240msgid "Module :mod:`pickle`"
176- msgstr ""
241+ msgstr "Modul :mod:`pickle` "
177242
178243#: ../../library/copy.rst:135
179244msgid ""
180245"Discussion of the special methods used to support object state retrieval and "
181246"restoration."
182247msgstr ""
248+ "Diskussion der speziellen Methoden, die das Abrufen und Wiederherstellen des "
249+ "Objektzustands unterstützen."
183250
184251#: ../../library/copy.rst:83
185252msgid "module"
186253msgstr "Modul"
187254
188255#: ../../library/copy.rst:83
189256msgid "pickle"
190- msgstr ""
257+ msgstr "pickle "
191258
192259#: ../../library/copy.rst:90
193260msgid "__copy__() (copy protocol)"
194- msgstr ""
261+ msgstr "__copy__() (Kopierprotokoll) "
195262
196263#: ../../library/copy.rst:90
197264msgid "__deepcopy__() (copy protocol)"
198- msgstr ""
265+ msgstr "__deepcopy__() (Kopierprotokoll) "
199266
200267#: ../../library/copy.rst:115
201268msgid "__replace__() (replace protocol)"
202- msgstr ""
269+ msgstr "__replace__() (Ersetzungsprotokoll) "
0 commit comments