Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2cdbef6

Browse files
[po] auto sync
1 parent 465086e commit 2cdbef6

2 files changed

Lines changed: 12 additions & 13 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "91.16%", "updated_at": "2023-09-26T16:57:19Z"}
1+
{"translation": "91.16%", "updated_at": "2023-09-26T17:56:45Z"}

library/weakref.po

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ msgid ""
5555
"the weak reference may return the object even if there are no strong "
5656
"references to it."
5757
msgstr ""
58-
"对象的弱引用不能保证对象存活:当所指对像的引用只剩弱引用时, :term:`garbage collection` "
58+
"对象的弱引用不能保证对象存活:当所指对像的引用只剩弱引用时, :term:`垃圾回收 <garbage collection>` "
5959
"可以销毁所指对象,并将其内存重新用于其它用途。但是,在实际销毁对象之前,即使没有强引用,弱引用也能返回该对象。"
6060

6161
#: ../../library/weakref.rst:33
@@ -97,7 +97,7 @@ msgid ""
9797
" a :class:`WeakKeyDictionary` does."
9898
msgstr ""
9999
":class:`WeakKeyDictionary` 和 :class:`WeakValueDictionary` "
100-
"在它们的实现中使用弱引用,在弱引用上设置回调函数,当键或值被垃圾回收回收时通知弱字典。 :class:`WeakSet` 实现了 "
100+
"在它们的实现中使用了弱引用,并在弱引用上设置当键或值被垃圾回收器回收时通知弱字典的回调函数。 :class:`WeakSet` 实现了 "
101101
":class:`set` 接口,但像 :class:`WeakKeyDictionary` 一样,只持有其元素的弱引用。"
102102

103103
#: ../../library/weakref.rst:57
@@ -109,7 +109,7 @@ msgid ""
109109
"object is collected."
110110
msgstr ""
111111
":class:`finalize` "
112-
"提供了注册一个对象被垃圾收集时要调用的清理函数的方式。这比在原始弱引用上设置回调函数更简单,因为模块会自动确保对象被回收前终结器一直保持存活。"
112+
"提供了一种直接的方法来注册当对象被垃圾收集时要调用的清理函数。这比在普通的弱引用上设置回调函数的方式更简单,因为模块会自动确保对象被回收前终结器一直保持存活。"
113113

114114
#: ../../library/weakref.rst:63
115115
msgid ""
@@ -118,8 +118,8 @@ msgid ""
118118
"your own weak references directly. The low-level machinery is exposed by "
119119
"the :mod:`weakref` module for the benefit of advanced uses."
120120
msgstr ""
121-
"这些弱容器类型之一或者 :class:`finalize` 就是大多数程序所需要的 - 通常不需要直接创建自己的弱引用。:mod:`weakref` "
122-
"模块暴露了低级机制,以便于高级用途。"
121+
"这些弱容器类型之一或者 :class:`finalize` 就是大多数程序所需要的——通常不需要直接创建自己的弱引用。:mod:`weakref` "
122+
"模块暴露了底层机制,以便于高级用途。"
123123

124124
#: ../../library/weakref.rst:68
125125
msgid ""
@@ -129,31 +129,30 @@ msgid ""
129129
"object>`, :term:`generators <generator>`, type objects, sockets, arrays, "
130130
"deques, regular expression pattern objects, and code objects."
131131
msgstr ""
132-
"并非所有对象都可以被弱引用。 支持弱引用的对象包括类实例、用 Python(而非用 C)编写的函数、实例方法、集合、冻结集合、某些 "
133-
":term:`文件对象 <file object>`、:term:`生成器 "
134-
"<generator>`、类型对象、套接字、数组、双端队列、正则表达式模式对象以及代码对象。"
132+
"并非所有对象都可以被弱引用。支持弱引用的对象包括类实例、用 Python(而非用 C)编写的函数、实例方法、集合、冻结集合、某些 :term:`文件对象"
133+
" <file object>`、:term:`生成器 <generator>`、类型对象、套接字、数组、双端队列、正则表达式模式对象以及代码对象。"
135134

136135
#: ../../library/weakref.rst:74
137136
msgid "Added support for thread.lock, threading.Lock, and code objects."
138-
msgstr "添加了对thread.lock,threading.Lock和代码对象的支持。"
137+
msgstr "添加了对 thread.lock,threading.Lock 和代码对象的支持。"
139138

140139
#: ../../library/weakref.rst:77
141140
msgid ""
142141
"Several built-in types such as :class:`list` and :class:`dict` do not "
143142
"directly support weak references but can add support through subclassing::"
144-
msgstr "几个内建类型如 :class:`list` 和 :class:`dict` 不直接支持弱引用,但可以通过子类化添加支持::"
143+
msgstr "一些内置类型,如 :class:`list` 和 :class:`dict`不直接支持弱引用,但可以通过子类化添加支持::"
145144

146145
#: ../../library/weakref.rst:87
147146
msgid ""
148147
"Other built-in types such as :class:`tuple` and :class:`int` do not support "
149148
"weak references even when subclassed."
150-
msgstr "其他内置类型例如 :class:`tuple` 和 :class:`int` 不支持弱引用,即使通过子类化也不支持。"
149+
msgstr "其他内置类型,如 :class:`tuple` 和 :class:`int`不支持弱引用,即使通过子类化也不支持。"
151150

152151
#: ../../library/weakref.rst:90
153152
msgid ""
154153
"Extension types can easily be made to support weak references; see "
155154
":ref:`weakref-support`."
156-
msgstr " 可以轻松地使用扩展类型来支持弱引用;参见 :ref:`weakref-support`。"
155+
msgstr "可以轻松地使扩展类型支持弱引用;参见 :ref:`weakref-support`。"
157156

158157
#: ../../library/weakref.rst:93
159158
msgid ""

0 commit comments

Comments
 (0)