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#
99#, fuzzy
1010msgid ""
1111msgstr ""
12- "Project-Id-Version : Python 3.9 \n "
12+ "Project-Id-Version : Python 3.14 \n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2021-04-29 06:12 +0000\n "
15- "PO-Revision-Date : 2018 -06-29 21:01 +0000\n "
14+ "POT-Creation-Date : 2025-05-09 14:19 +0000\n "
15+ "PO-Revision-Date : 2021 -06-28 00:48 +0000\n "
1616"Last-Translator : oon arfiandwi <oon.arfiandwi@gmail.com>, 2021\n "
17- "Language-Team : Indonesian (https://www .transifex.com/python-doc/teams/5390/id/)\n "
17+ "Language-Team : Indonesian (https://app .transifex.com/python-doc/teams/5390/id/)\n "
1818"MIME-Version : 1.0\n "
1919"Content-Type : text/plain; charset=UTF-8\n "
2020"Content-Transfer-Encoding : 8bit\n "
@@ -25,15 +25,24 @@ msgstr ""
2525msgid "Context Variables Objects"
2626msgstr ""
2727
28- #: ../../c-api/contextvars.rst:13
28+ #: ../../c-api/contextvars.rst:15
2929msgid ""
3030"In Python 3.7.1 the signatures of all context variables C APIs were "
3131"**changed** to use :c:type:`PyObject` pointers instead of "
3232":c:type:`PyContext`, :c:type:`PyContextVar`, and :c:type:`PyContextToken`, "
3333"e.g.::"
3434msgstr ""
3535
36- #: ../../c-api/contextvars.rst:24
36+ #: ../../c-api/contextvars.rst:20
37+ msgid ""
38+ "// in 3.7.0:\n"
39+ "PyContext *PyContext_New(void);\n"
40+ "\n"
41+ "// in 3.7.1+:\n"
42+ "PyObject *PyContext_New(void);"
43+ msgstr ""
44+
45+ #: ../../c-api/contextvars.rst:26
3746msgid "See :issue:`34762` for more details."
3847msgstr ""
3948
@@ -125,54 +134,104 @@ msgid ""
125134"error."
126135msgstr ""
127136
128- #: ../../c-api/contextvars.rst:105
137+ #: ../../c-api/contextvars.rst:106
138+ msgid ""
139+ "Register *callback* as a context object watcher for the current interpreter."
140+ " Return an ID which may be passed to :c:func:`PyContext_ClearWatcher`. In "
141+ "case of error (e.g. no more watcher IDs available), return ``-1`` and set an"
142+ " exception."
143+ msgstr ""
144+
145+ #: ../../c-api/contextvars.rst:115
146+ msgid ""
147+ "Clear watcher identified by *watcher_id* previously returned from "
148+ ":c:func:`PyContext_AddWatcher` for the current interpreter. Return ``0`` on "
149+ "success, or ``-1`` and set an exception on error (e.g. if the given "
150+ "*watcher_id* was never registered.)"
151+ msgstr ""
152+
153+ #: ../../c-api/contextvars.rst:124
154+ msgid "Enumeration of possible context object watcher events:"
155+ msgstr ""
156+
157+ #: ../../c-api/contextvars.rst:126
158+ msgid ""
159+ "``Py_CONTEXT_SWITCHED``: The :term:`current context` has switched to a "
160+ "different context. The object passed to the watch callback is the now-"
161+ "current :class:`contextvars.Context` object, or None if no context is "
162+ "current."
163+ msgstr ""
164+
165+ #: ../../c-api/contextvars.rst:135
166+ msgid ""
167+ "Context object watcher callback function. The object passed to the callback"
168+ " is event-specific; see :c:type:`PyContextEvent` for details."
169+ msgstr ""
170+
171+ #: ../../c-api/contextvars.rst:138
172+ msgid ""
173+ "If the callback returns with an exception set, it must return ``-1``; this "
174+ "exception will be printed as an unraisable exception using "
175+ ":c:func:`PyErr_FormatUnraisable`. Otherwise it should return ``0``."
176+ msgstr ""
177+
178+ #: ../../c-api/contextvars.rst:142
179+ msgid ""
180+ "There may already be a pending exception set on entry to the callback. In "
181+ "this case, the callback should return ``0`` with the same exception still "
182+ "set. This means the callback may not call any other API that can set an "
183+ "exception unless it saves and clears the exception state first, and restores"
184+ " it before returning."
185+ msgstr ""
186+
187+ #: ../../c-api/contextvars.rst:151
129188msgid "Context variable functions:"
130189msgstr ""
131190
132- #: ../../c-api/contextvars.rst:109
191+ #: ../../c-api/contextvars.rst:155
133192msgid ""
134193"Create a new ``ContextVar`` object. The *name* parameter is used for "
135194"introspection and debug purposes. The *def* parameter specifies a default "
136195"value for the context variable, or ``NULL`` for no default. If an error has "
137196"occurred, this function returns ``NULL``."
138197msgstr ""
139198
140- #: ../../c-api/contextvars.rst:116
199+ #: ../../c-api/contextvars.rst:162
141200msgid ""
142201"Get the value of a context variable. Returns ``-1`` if an error has "
143202"occurred during lookup, and ``0`` if no error occurred, whether or not a "
144203"value was found."
145204msgstr ""
146205
147- #: ../../c-api/contextvars.rst:120
206+ #: ../../c-api/contextvars.rst:166
148207msgid ""
149208"If the context variable was found, *value* will be a pointer to it. If the "
150209"context variable was *not* found, *value* will point to:"
151210msgstr ""
152211
153- #: ../../c-api/contextvars.rst:123
212+ #: ../../c-api/contextvars.rst:169
154213msgid "*default_value*, if not ``NULL``;"
155214msgstr ""
156215
157- #: ../../c-api/contextvars.rst:124
216+ #: ../../c-api/contextvars.rst:170
158217msgid "the default value of *var*, if not ``NULL``;"
159218msgstr ""
160219
161- #: ../../c-api/contextvars.rst:125
220+ #: ../../c-api/contextvars.rst:171
162221msgid "``NULL``"
163222msgstr "``NULL``"
164223
165- #: ../../c-api/contextvars.rst:127
224+ #: ../../c-api/contextvars.rst:173
166225msgid "Except for ``NULL``, the function returns a new reference."
167226msgstr ""
168227
169- #: ../../c-api/contextvars.rst:131
228+ #: ../../c-api/contextvars.rst:177
170229msgid ""
171230"Set the value of *var* to *value* in the current context. Returns a new "
172231"token object for this change, or ``NULL`` if an error has occurred."
173232msgstr ""
174233
175- #: ../../c-api/contextvars.rst:136
234+ #: ../../c-api/contextvars.rst:182
176235msgid ""
177236"Reset the state of the *var* context variable to that it was in before "
178237":c:func:`PyContextVar_Set` that returned the *token* was called. This "
0 commit comments