@@ -40,30 +40,31 @@ msgstr ""
4040msgid ""
4141"This instance of :c:type:`PyTypeObject` represents the Python instance "
4242"method type. It is not exposed to Python programs."
43- msgstr ""
43+ msgstr "这个 :c:type:`PyTypeObject` 实例代表 Python 实例方法类型。 它并不对 Python 程序公开。 "
4444
4545#: ../../c-api/method.rst:23
4646msgid ""
4747"Return true if *o* is an instance method object (has type "
4848":c:data:`PyInstanceMethod_Type`). The parameter must not be ``NULL``."
4949msgstr ""
50+ "如果 *o* 是实例方法对象 (类型为 :c:data:`PyInstanceMethod_Type`) 则返回真值。 形参必须不为 ``NULL``。"
5051
5152#: ../../c-api/method.rst:29
5253msgid ""
5354"Return a new instance method object, with *func* being any callable object "
5455"*func* is the function that will be called when the instance method is "
5556"called."
56- msgstr ""
57+ msgstr "返回一个新的实例方法对象,*func* 应为任意可调用对象,*func* 将在实例方法被调用时作为函数被调用。 "
5758
5859#: ../../c-api/method.rst:36
5960msgid "Return the function object associated with the instance method *im*."
60- msgstr ""
61+ msgstr "返回关联到实例方法 *im* 的函数对象。 "
6162
6263#: ../../c-api/method.rst:41
6364msgid ""
6465"Macro version of :c:func:`PyInstanceMethod_Function` which avoids error "
6566"checking."
66- msgstr ""
67+ msgstr "宏版本的 :c:func:`PyInstanceMethod_Function`,略去了错误检测。 "
6768
6869#: ../../c-api/method.rst:47
6970msgid "Method Objects"
@@ -74,26 +75,30 @@ msgid ""
7475"Methods are bound function objects. Methods are always bound to an instance "
7576"of a user-defined class. Unbound methods (methods bound to a class object) "
7677"are no longer available."
77- msgstr ""
78+ msgstr "方法是绑定的函数对象。 方法总是会被绑定到一个用户自定义类的实例。 未绑定方法(绑定到一个类的方法)已不再可用。 "
7879
7980#: ../../c-api/method.rst:60
8081msgid ""
8182"This instance of :c:type:`PyTypeObject` represents the Python method type. "
8283"This is exposed to Python programs as ``types.MethodType``."
8384msgstr ""
85+ "这个 :c:type:`PyTypeObject` 实例代表 Python 方法类型。 它作为 ``types.MethodType`` 向 "
86+ "Python 程序公开。"
8487
8588#: ../../c-api/method.rst:66
8689msgid ""
8790"Return true if *o* is a method object (has type :c:data:`PyMethod_Type`). "
8891"The parameter must not be ``NULL``."
89- msgstr ""
92+ msgstr "如果 *o* 是方法对象 (类型为 :c:data:`PyMethod_Type`) 则返回真值。 形参必须不为 ``NULL``。 "
9093
9194#: ../../c-api/method.rst:72
9295msgid ""
9396"Return a new method object, with *func* being any callable object and *self*"
9497" the instance the method should be bound. *func* is the function that will "
9598"be called when the method is called. *self* must not be ``NULL``."
9699msgstr ""
100+ "返回一个新的方法对象,*func* 应为任意可调用对象,*self* 为该方法应绑定的实例。 在方法被调用时 *func* 将作为函数被调用。 "
101+ "*self* 必须不为 ``NULL``。"
97102
98103#: ../../c-api/method.rst:79
99104msgid "Return the function object associated with the method *meth*."
0 commit comments