11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2018 , Python Software Foundation
2+ # Copyright (C) 2001-2019 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
6+ # Translators:
7+ # Siyuan Xu <[email protected] >, 20198+ #
69#, fuzzy
710msgid ""
811msgstr ""
912"Project-Id-Version : Python 3.7\n "
1013"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2018-06-30 05:56+0900\n "
12- "PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
14+ "POT-Creation-Date : 2019-01-01 10:14+0900\n "
15+ "PO-Revision-Date : 2017-02-16 17:40+0000\n "
16+ "
Last-Translator :
Siyuan Xu <[email protected] >, 2019\n "
1317"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1418"MIME-Version : 1.0\n "
1519"Content-Type : text/plain; charset=UTF-8\n "
@@ -19,7 +23,7 @@ msgstr ""
1923
2024#: ../../c-api/weakref.rst:6
2125msgid "Weak Reference Objects"
22- msgstr ""
26+ msgstr "弱引用对象 "
2327
2428#: ../../c-api/weakref.rst:8
2529msgid ""
@@ -28,18 +32,19 @@ msgid ""
2832"is a simple reference object, and the second acts as a proxy for the "
2933"original object as much as it can."
3034msgstr ""
35+ "Python 支持 “弱引用” 作为一类对象。具体来说,有两种直接实现弱引用的对象。第一种就是简单的引用对象,第二种尽可能地作用为一个原对象的代理。"
3136
3237#: ../../c-api/weakref.rst:16
3338msgid "Return true if *ob* is either a reference or proxy object."
34- msgstr ""
39+ msgstr "如果 “ob” 是一个引用或者一个代理对象,则返回一个 true。 "
3540
3641#: ../../c-api/weakref.rst:21
3742msgid "Return true if *ob* is a reference object."
38- msgstr ""
43+ msgstr "如果 “ob” 是一个引用,则返回 true。 "
3944
4045#: ../../c-api/weakref.rst:26
4146msgid "Return true if *ob* is a proxy object."
42- msgstr ""
47+ msgstr "如果 “ob” 是一个代理对象,则返回 true。 "
4348
4449#: ../../c-api/weakref.rst:31
4550msgid ""
@@ -52,6 +57,10 @@ msgid ""
5257"weakly-referencable object, or if *callback* is not callable, ``None``, or "
5358"*NULL*, this will return *NULL* and raise :exc:`TypeError`."
5459msgstr ""
60+ "返回对象 ob 的一个弱引用对象。该函数始终会返回一个新的引用,但却并不一定会创建新的对象;该函数可能返回一个已经存在的弱引用对象。第二个参数 "
61+ "callback 可以是一个可以调用的对象,它会在 ob 被垃圾收集时收到通知;它应该接受单一参数,表示弱引用对象本身。callback 也可以是 "
62+ "``None`` 或者 NULL。如果 ob 不是一个弱引用对象,或者 callback 不是一个可调用对象、``None`` 或者 "
63+ "NULL,该函数返回 NULL 并引发 :exc:`TypeError`。"
5564
5665#: ../../c-api/weakref.rst:43
5766msgid ""
@@ -64,22 +73,28 @@ msgid ""
6473" is not a weakly-referencable object, or if *callback* is not callable, "
6574"``None``, or *NULL*, this will return *NULL* and raise :exc:`TypeError`."
6675msgstr ""
76+ "返回对象 ob 的一个弱引用代理对象。该函数始终会返回一个新的引用,但却并不一定会创建新的对象;该函数可能返回一个已经存在的代理对象。第二个参数 "
77+ "callback 可以是一个可以调用的对象,它会在 ob 被垃圾收集时收到通知;它应该接受单一参数,表示弱引用对象本身。callback 也可以是 "
78+ "``None`` 或者 NULL。如果 ob 不是一个弱引用对象,或者 callback 不是一个可调用对象、``None`` 或者 "
79+ "NULL,该函数返回 NULL 并引发 :exc:`TypeError`。"
6780
6881#: ../../c-api/weakref.rst:55
6982msgid ""
7083"Return the referenced object from a weak reference, *ref*. If the referent "
7184"is no longer live, returns :const:`Py_None`."
72- msgstr ""
85+ msgstr "返回弱引用对象 ref 的被引用对象。如果被引用对象不再存在,则返回 :const:`Py_None`。 "
7386
7487#: ../../c-api/weakref.rst:60
7588msgid ""
7689"This function returns a **borrowed reference** to the referenced object. "
7790"This means that you should always call :c:func:`Py_INCREF` on the object "
7891"except if you know that it cannot be destroyed while you are still using it."
7992msgstr ""
93+ "该函数返回被引用对象的一个**借来的引用**。这意味着除非你很清楚在你使用期间这个对象不可能被销毁,否则你应该始终对该对象调用 "
94+ ":c:func:`Py_INCREF`。"
8095
8196#: ../../c-api/weakref.rst:68
8297msgid ""
8398"Similar to :c:func:`PyWeakref_GetObject`, but implemented as a macro that "
8499"does no error checking."
85- msgstr ""
100+ msgstr "类似 :c:func:`PyWeakref_GetObject`,但实现为一个不做类型检查的宏。 "
0 commit comments