Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
python-docs-ru/library/copy.po at 3.13 · python/python-docs-ru · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
python-docs-ru
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
20
Code
Issues
0
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Files
Expand file tree
3.13
Breadcrumbs
python-docs-ru
/
library
/
copy.po
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
178 lines (146 loc) · 5.36 KB
3.13
Breadcrumbs
python-docs-ru
/
library
/
copy.po
Copy path
Top
File metadata and controls
Code
Blame
178 lines (146 loc) · 5.36 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
SOME DESCRIPTIVE TITLE.
#
Copyright (C) 2001 Python Software Foundation
#
This file is distributed under the same license as the Python package.
#
FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#
Translators:
#
python-doc bot, 2025
#
#,
fuzzy
msgid ""
msgstr ""
"
Project-Id-Version
:
Python 3.15\n
"
"
Report-Msgid-Bugs-To
:
\n
"
"
POT-Creation-Date
:
2026-09-01 17:31+0000\n
"
"
PO-Revision-Date
:
2025-09-16 00:01+0000\n
"
"
Last-Translator
:
python-doc bot, 2025\n
"
"
Language-Team
:
Russian (https://app.transifex.com/python-doc/teams/5390/
"
"
ru/)\n
"
"
MIME-Version
:
1.0\n
"
"
Content-Type
:
text/plain; charset=UTF-8\n
"
"
Content-Transfer-Encoding
:
8bit\n
"
"
Language
:
ru\n
"
"
Plural-Forms
:
nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 &&
"
"
n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) ||
"
"
(n%100>=11 && n%100<=14)? 2 : 3);\n
"
msgid
":mod:`!copy` --- Shallow and deep copy operations"
msgstr
""
msgid
"**Source code:** :source:`Lib/copy.py`"
msgstr
""
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
""
msgid
"Interface summary:"
msgstr
""
msgid
"Return a shallow copy of *obj*."
msgstr
""
msgid
"Return a deep copy of *obj*."
msgstr
""
msgid
""
"Creates a new object of the same type as *obj*, replacing fields with values "
"from *changes*."
msgstr
""
msgid
"Raised for module specific errors."
msgstr
""
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
""
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
""
msgid
""
"A *deep copy* constructs a new compound object and then, recursively, "
"inserts *copies* into it of the objects found in the original."
msgstr
""
msgid
""
"Two problems often exist with deep copy operations that don't exist with "
"shallow copy operations:"
msgstr
""
msgid
""
"Recursive objects (compound objects that, directly or indirectly, contain a "
"reference to themselves) may cause a recursive loop."
msgstr
""
msgid
""
"Because deep copy copies everything it may copy too much, such as data which "
"is intended to be shared between copies."
msgstr
""
msgid
"The :func:`deepcopy` function avoids these problems by:"
msgstr
""
msgid
""
"keeping a ``memo`` dictionary of objects already copied during the current "
"copying pass; and"
msgstr
""
msgid
""
"letting user-defined classes override the copying operation or the set of "
"components copied."
msgstr
""
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
""
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
""
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
""
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
""
msgid
""
"Called to implement the shallow copy operation; no additional arguments are "
"passed."
msgstr
""
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
""
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
""
msgid
""
"This method should create a new object of the same type, replacing fields "
"with values from *changes*."
msgstr
""
msgid
"Module :mod:`pickle`"
msgstr
""
msgid
""
"Discussion of the special methods used to support object state retrieval and "
"restoration."
msgstr
""
msgid
"module"
msgstr
""
msgid
"pickle"
msgstr
""
msgid
"__copy__() (copy protocol)"
msgstr
""
msgid
"__deepcopy__() (copy protocol)"
msgstr
""
msgid
"__replace__() (replace protocol)"
msgstr
""
You can’t perform that action at this time.