11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2021, Python Software Foundation
2+ # Copyright (C) 2001 Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66#, fuzzy
77msgid ""
88msgstr ""
9- "Project-Id-Version : Python 3.9 \n "
9+ "Project-Id-Version : Python 3.14 \n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2021-01-07 05:06 +0000\n "
12- "PO-Revision-Date : 2017-02-16 17:40 +0000\n "
13- "Language-Team : Indonesian (https://www .transifex.com/python-doc/teams/5390/id/)\n "
11+ "POT-Creation-Date : 2025-05-09 14:19 +0000\n "
12+ "PO-Revision-Date : 2021-06-28 00:50 +0000\n "
13+ "Language-Team : Indonesian (https://app .transifex.com/python-doc/teams/5390/id/)\n "
1414"MIME-Version : 1.0\n "
1515"Content-Type : text/plain; charset=UTF-8\n "
1616"Content-Transfer-Encoding : 8bit\n "
@@ -31,17 +31,19 @@ msgstr ""
3131
3232#: ../../c-api/weakref.rst:16
3333msgid ""
34- "Return true if *ob* is either a reference or proxy object. This function "
35- "always succeeds."
34+ "Return non-zero if *ob* is either a reference or proxy object. This "
35+ "function always succeeds."
3636msgstr ""
3737
3838#: ../../c-api/weakref.rst:22
3939msgid ""
40- "Return true if *ob* is a reference object. This function always succeeds."
40+ "Return non-zero if *ob* is a reference object. This function always "
41+ "succeeds."
4142msgstr ""
4243
4344#: ../../c-api/weakref.rst:27
44- msgid "Return true if *ob* is a proxy object. This function always succeeds."
45+ msgid ""
46+ "Return non-zero if *ob* is a proxy object. This function always succeeds."
4547msgstr ""
4648
4749#: ../../c-api/weakref.rst:32
@@ -52,8 +54,8 @@ msgid ""
5254"a callable object that receives notification when *ob* is garbage collected;"
5355" it should accept a single parameter, which will be the weak reference "
5456"object itself. *callback* may also be ``None`` or ``NULL``. If *ob* is not "
55- "a weakly-referencable object, or if *callback* is not callable, ``None``, or "
56- " ``NULL``, this will return ``NULL`` and raise :exc:`TypeError`."
57+ "a weakly referenceable object, or if *callback* is not callable, ``None``, "
58+ "or ``NULL``, this will return ``NULL`` and raise :exc:`TypeError`."
5759msgstr ""
5860
5961#: ../../c-api/weakref.rst:44
@@ -64,25 +66,88 @@ msgid ""
6466"can be a callable object that receives notification when *ob* is garbage "
6567"collected; it should accept a single parameter, which will be the weak "
6668"reference object itself. *callback* may also be ``None`` or ``NULL``. If "
67- "*ob* is not a weakly-referencable object, or if *callback* is not callable, "
68- "``None``, or ``NULL``, this will return ``NULL`` and raise :exc:`TypeError`."
69+ "*ob* is not a weakly referenceable object, or if *callback* is not callable,"
70+ " ``None``, or ``NULL``, this will return ``NULL`` and raise "
71+ ":exc:`TypeError`."
6972msgstr ""
7073
7174#: ../../c-api/weakref.rst:56
7275msgid ""
73- "Return the referenced object from a weak reference, *ref*. If the referent "
74- "is no longer live, returns :const:`Py_None` ."
76+ "Get a :term:`strong reference` to the referenced object from a weak "
77+ "reference, *ref*, into * \\ *pobj* ."
7578msgstr ""
7679
77- #: ../../c-api/weakref.rst:61
80+ #: ../../c-api/weakref.rst:59
7881msgid ""
79- "This function returns a **borrowed reference** to the referenced object. "
80- "This means that you should always call :c:func:`Py_INCREF` on the object "
81- "except if you know that it cannot be destroyed while you are still using it."
82+ "On success, set *\\ *pobj* to a new :term:`strong reference` to the "
83+ "referenced object and return 1."
84+ msgstr ""
85+
86+ #: ../../c-api/weakref.rst:61
87+ msgid "If the reference is dead, set *\\ *pobj* to ``NULL`` and return 0."
88+ msgstr ""
89+
90+ #: ../../c-api/weakref.rst:62
91+ msgid "On error, raise an exception and return -1."
8292msgstr ""
8393
8494#: ../../c-api/weakref.rst:69
8595msgid ""
86- "Similar to :c:func:`PyWeakref_GetObject`, but implemented as a macro that "
87- "does no error checking."
96+ "Return a :term:`borrowed reference` to the referenced object from a weak "
97+ "reference, *ref*. If the referent is no longer live, returns ``Py_None``."
98+ msgstr ""
99+
100+ #: ../../c-api/weakref.rst:74
101+ msgid ""
102+ "This function returns a :term:`borrowed reference` to the referenced object."
103+ " This means that you should always call :c:func:`Py_INCREF` on the object "
104+ "except when it cannot be destroyed before the last usage of the borrowed "
105+ "reference."
106+ msgstr ""
107+
108+ #: ../../c-api/weakref.rst:79 ../../c-api/weakref.rst:87
109+ msgid "Use :c:func:`PyWeakref_GetRef` instead."
110+ msgstr ""
111+
112+ #: ../../c-api/weakref.rst:85
113+ msgid "Similar to :c:func:`PyWeakref_GetObject`, but does no error checking."
114+ msgstr ""
115+
116+ #: ../../c-api/weakref.rst:93
117+ msgid ""
118+ "Test if the weak reference *ref* is dead. Returns 1 if the reference is "
119+ "dead, 0 if it is alive, and -1 with an error set if *ref* is not a weak "
120+ "reference object."
121+ msgstr ""
122+
123+ #: ../../c-api/weakref.rst:102
124+ msgid ""
125+ "This function is called by the :c:member:`~PyTypeObject.tp_dealloc` handler "
126+ "to clear weak references."
127+ msgstr ""
128+
129+ #: ../../c-api/weakref.rst:105
130+ msgid ""
131+ "This iterates through the weak references for *object* and calls callbacks "
132+ "for those references which have one. It returns when all callbacks have been"
133+ " attempted."
134+ msgstr ""
135+
136+ #: ../../c-api/weakref.rst:112
137+ msgid "Clears the weakrefs for *object* without calling the callbacks."
138+ msgstr ""
139+
140+ #: ../../c-api/weakref.rst:114
141+ msgid ""
142+ "This function is called by the :c:member:`~PyTypeObject.tp_dealloc` handler "
143+ "for types with finalizers (i.e., :meth:`~object.__del__`). The handler for "
144+ "those objects first calls :c:func:`PyObject_ClearWeakRefs` to clear weakrefs"
145+ " and call their callbacks, then the finalizer, and finally this function to "
146+ "clear any weakrefs that may have been created by the finalizer."
147+ msgstr ""
148+
149+ #: ../../c-api/weakref.rst:120
150+ msgid ""
151+ "In most circumstances, it's more appropriate to use "
152+ ":c:func:`PyObject_ClearWeakRefs` to clear weakrefs instead of this function."
88153msgstr ""
0 commit comments