|
| 1 | +# SOME DESCRIPTIVE TITLE. |
| 2 | +# Copyright (C) 2001 Python Software Foundation |
| 3 | +# This file is distributed under the same license as the Python package. |
| 4 | +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 | +# |
| 6 | +#, fuzzy |
| 7 | +msgid "" |
| 8 | +msgstr "" |
| 9 | +"Project-Id-Version: Python 3.14\n" |
| 10 | +"Report-Msgid-Bugs-To: \n" |
| 11 | +"POT-Creation-Date: 2025-05-09 14:19+0000\n" |
| 12 | +"PO-Revision-Date: 2024-05-11 01:07+0000\n" |
| 13 | +"Language-Team: Indonesian (https://app.transifex.com/python-doc/teams/5390/id/)\n" |
| 14 | +"MIME-Version: 1.0\n" |
| 15 | +"Content-Type: text/plain; charset=UTF-8\n" |
| 16 | +"Content-Transfer-Encoding: 8bit\n" |
| 17 | +"Language: id\n" |
| 18 | +"Plural-Forms: nplurals=1; plural=0;\n" |
| 19 | + |
| 20 | +#: ../../c-api/monitoring.rst:6 |
| 21 | +msgid "Monitoring C API" |
| 22 | +msgstr "" |
| 23 | + |
| 24 | +#: ../../c-api/monitoring.rst:8 |
| 25 | +msgid "Added in version 3.13." |
| 26 | +msgstr "" |
| 27 | + |
| 28 | +#: ../../c-api/monitoring.rst:10 |
| 29 | +msgid "" |
| 30 | +"An extension may need to interact with the event monitoring system. " |
| 31 | +"Subscribing to events and registering callbacks can be done via the Python " |
| 32 | +"API exposed in :mod:`sys.monitoring`." |
| 33 | +msgstr "" |
| 34 | + |
| 35 | +#: ../../c-api/monitoring.rst:15 |
| 36 | +msgid "Generating Execution Events" |
| 37 | +msgstr "" |
| 38 | + |
| 39 | +#: ../../c-api/monitoring.rst:17 |
| 40 | +msgid "" |
| 41 | +"The functions below make it possible for an extension to fire monitoring " |
| 42 | +"events as it emulates the execution of Python code. Each of these functions " |
| 43 | +"accepts a ``PyMonitoringState`` struct which contains concise information " |
| 44 | +"about the activation state of events, as well as the event arguments, which " |
| 45 | +"include a ``PyObject*`` representing the code object, the instruction offset" |
| 46 | +" and sometimes additional, event-specific arguments (see " |
| 47 | +":mod:`sys.monitoring` for details about the signatures of the different " |
| 48 | +"event callbacks). The ``codelike`` argument should be an instance of " |
| 49 | +":class:`types.CodeType` or of a type that emulates it." |
| 50 | +msgstr "" |
| 51 | + |
| 52 | +#: ../../c-api/monitoring.rst:27 |
| 53 | +msgid "" |
| 54 | +"The VM disables tracing when firing an event, so there is no need for user " |
| 55 | +"code to do that." |
| 56 | +msgstr "" |
| 57 | + |
| 58 | +#: ../../c-api/monitoring.rst:30 |
| 59 | +msgid "" |
| 60 | +"Monitoring functions should not be called with an exception set, except " |
| 61 | +"those listed below as working with the current exception." |
| 62 | +msgstr "" |
| 63 | + |
| 64 | +#: ../../c-api/monitoring.rst:35 |
| 65 | +msgid "" |
| 66 | +"Representation of the state of an event type. It is allocated by the user " |
| 67 | +"while its contents are maintained by the monitoring API functions described " |
| 68 | +"below." |
| 69 | +msgstr "" |
| 70 | + |
| 71 | +#: ../../c-api/monitoring.rst:39 |
| 72 | +msgid "" |
| 73 | +"All of the functions below return 0 on success and -1 (with an exception " |
| 74 | +"set) on error." |
| 75 | +msgstr "" |
| 76 | + |
| 77 | +#: ../../c-api/monitoring.rst:41 |
| 78 | +msgid "See :mod:`sys.monitoring` for descriptions of the events." |
| 79 | +msgstr "" |
| 80 | + |
| 81 | +#: ../../c-api/monitoring.rst:45 |
| 82 | +msgid "Fire a ``PY_START`` event." |
| 83 | +msgstr "" |
| 84 | + |
| 85 | +#: ../../c-api/monitoring.rst:50 |
| 86 | +msgid "Fire a ``PY_RESUME`` event." |
| 87 | +msgstr "" |
| 88 | + |
| 89 | +#: ../../c-api/monitoring.rst:55 |
| 90 | +msgid "Fire a ``PY_RETURN`` event." |
| 91 | +msgstr "" |
| 92 | + |
| 93 | +#: ../../c-api/monitoring.rst:60 |
| 94 | +msgid "Fire a ``PY_YIELD`` event." |
| 95 | +msgstr "" |
| 96 | + |
| 97 | +#: ../../c-api/monitoring.rst:65 |
| 98 | +msgid "Fire a ``CALL`` event." |
| 99 | +msgstr "" |
| 100 | + |
| 101 | +#: ../../c-api/monitoring.rst:70 |
| 102 | +msgid "Fire a ``LINE`` event." |
| 103 | +msgstr "" |
| 104 | + |
| 105 | +#: ../../c-api/monitoring.rst:75 |
| 106 | +msgid "Fire a ``JUMP`` event." |
| 107 | +msgstr "" |
| 108 | + |
| 109 | +#: ../../c-api/monitoring.rst:80 |
| 110 | +msgid "Fire a ``BRANCH_LEFT`` event." |
| 111 | +msgstr "" |
| 112 | + |
| 113 | +#: ../../c-api/monitoring.rst:85 |
| 114 | +msgid "Fire a ``BRANCH_RIGHT`` event." |
| 115 | +msgstr "" |
| 116 | + |
| 117 | +#: ../../c-api/monitoring.rst:90 |
| 118 | +msgid "Fire a ``C_RETURN`` event." |
| 119 | +msgstr "" |
| 120 | + |
| 121 | +#: ../../c-api/monitoring.rst:95 |
| 122 | +msgid "" |
| 123 | +"Fire a ``PY_THROW`` event with the current exception (as returned by " |
| 124 | +":c:func:`PyErr_GetRaisedException`)." |
| 125 | +msgstr "" |
| 126 | + |
| 127 | +#: ../../c-api/monitoring.rst:101 |
| 128 | +msgid "" |
| 129 | +"Fire a ``RAISE`` event with the current exception (as returned by " |
| 130 | +":c:func:`PyErr_GetRaisedException`)." |
| 131 | +msgstr "" |
| 132 | + |
| 133 | +#: ../../c-api/monitoring.rst:107 |
| 134 | +msgid "" |
| 135 | +"Fire a ``C_RAISE`` event with the current exception (as returned by " |
| 136 | +":c:func:`PyErr_GetRaisedException`)." |
| 137 | +msgstr "" |
| 138 | + |
| 139 | +#: ../../c-api/monitoring.rst:113 |
| 140 | +msgid "" |
| 141 | +"Fire a ``RERAISE`` event with the current exception (as returned by " |
| 142 | +":c:func:`PyErr_GetRaisedException`)." |
| 143 | +msgstr "" |
| 144 | + |
| 145 | +#: ../../c-api/monitoring.rst:119 |
| 146 | +msgid "" |
| 147 | +"Fire an ``EXCEPTION_HANDLED`` event with the current exception (as returned " |
| 148 | +"by :c:func:`PyErr_GetRaisedException`)." |
| 149 | +msgstr "" |
| 150 | + |
| 151 | +#: ../../c-api/monitoring.rst:125 |
| 152 | +msgid "" |
| 153 | +"Fire a ``PY_UNWIND`` event with the current exception (as returned by " |
| 154 | +":c:func:`PyErr_GetRaisedException`)." |
| 155 | +msgstr "" |
| 156 | + |
| 157 | +#: ../../c-api/monitoring.rst:131 |
| 158 | +msgid "" |
| 159 | +"Fire a ``STOP_ITERATION`` event. If ``value`` is an instance of " |
| 160 | +":exc:`StopIteration`, it is used. Otherwise, a new :exc:`StopIteration` " |
| 161 | +"instance is created with ``value`` as its argument." |
| 162 | +msgstr "" |
| 163 | + |
| 164 | +#: ../../c-api/monitoring.rst:136 |
| 165 | +msgid "Managing the Monitoring State" |
| 166 | +msgstr "" |
| 167 | + |
| 168 | +#: ../../c-api/monitoring.rst:138 |
| 169 | +msgid "" |
| 170 | +"Monitoring states can be managed with the help of monitoring scopes. A scope" |
| 171 | +" would typically correspond to a python function." |
| 172 | +msgstr "" |
| 173 | + |
| 174 | +#: ../../c-api/monitoring.rst:143 |
| 175 | +msgid "" |
| 176 | +"Enter a monitored scope. ``event_types`` is an array of the event IDs for " |
| 177 | +"events that may be fired from the scope. For example, the ID of a " |
| 178 | +"``PY_START`` event is the value ``PY_MONITORING_EVENT_PY_START``, which is " |
| 179 | +"numerically equal to the base-2 logarithm of " |
| 180 | +"``sys.monitoring.events.PY_START``. ``state_array`` is an array with a " |
| 181 | +"monitoring state entry for each event in ``event_types``, it is allocated by" |
| 182 | +" the user but populated by :c:func:`!PyMonitoring_EnterScope` with " |
| 183 | +"information about the activation state of the event. The size of " |
| 184 | +"``event_types`` (and hence also of ``state_array``) is given in ``length``." |
| 185 | +msgstr "" |
| 186 | + |
| 187 | +#: ../../c-api/monitoring.rst:153 |
| 188 | +msgid "" |
| 189 | +"The ``version`` argument is a pointer to a value which should be allocated " |
| 190 | +"by the user together with ``state_array`` and initialized to 0, and then set" |
| 191 | +" only by :c:func:`!PyMonitoring_EnterScope` itself. It allows this function " |
| 192 | +"to determine whether event states have changed since the previous call, and " |
| 193 | +"to return quickly if they have not." |
| 194 | +msgstr "" |
| 195 | + |
| 196 | +#: ../../c-api/monitoring.rst:159 |
| 197 | +msgid "" |
| 198 | +"The scopes referred to here are lexical scopes: a function, class or method." |
| 199 | +" :c:func:`!PyMonitoring_EnterScope` should be called whenever the lexical " |
| 200 | +"scope is entered. Scopes can be reentered, reusing the same *state_array* " |
| 201 | +"and *version*, in situations like when emulating a recursive Python " |
| 202 | +"function. When a code-like's execution is paused, such as when emulating a " |
| 203 | +"generator, the scope needs to be exited and re-entered." |
| 204 | +msgstr "" |
| 205 | + |
| 206 | +#: ../../c-api/monitoring.rst:166 |
| 207 | +msgid "The macros for *event_types* are:" |
| 208 | +msgstr "" |
| 209 | + |
| 210 | +#: ../../c-api/monitoring.rst:174 |
| 211 | +msgid "Macro" |
| 212 | +msgstr "" |
| 213 | + |
| 214 | +#: ../../c-api/monitoring.rst:174 |
| 215 | +msgid "Event" |
| 216 | +msgstr "" |
| 217 | + |
| 218 | +#: ../../c-api/monitoring.rst:176 |
| 219 | +msgid ":monitoring-event:`BRANCH_LEFT`" |
| 220 | +msgstr "" |
| 221 | + |
| 222 | +#: ../../c-api/monitoring.rst:177 |
| 223 | +msgid ":monitoring-event:`BRANCH_RIGHT`" |
| 224 | +msgstr "" |
| 225 | + |
| 226 | +#: ../../c-api/monitoring.rst:178 |
| 227 | +msgid ":monitoring-event:`CALL`" |
| 228 | +msgstr "" |
| 229 | + |
| 230 | +#: ../../c-api/monitoring.rst:179 |
| 231 | +msgid ":monitoring-event:`C_RAISE`" |
| 232 | +msgstr "" |
| 233 | + |
| 234 | +#: ../../c-api/monitoring.rst:180 |
| 235 | +msgid ":monitoring-event:`C_RETURN`" |
| 236 | +msgstr "" |
| 237 | + |
| 238 | +#: ../../c-api/monitoring.rst:181 |
| 239 | +msgid ":monitoring-event:`EXCEPTION_HANDLED`" |
| 240 | +msgstr "" |
| 241 | + |
| 242 | +#: ../../c-api/monitoring.rst:182 |
| 243 | +msgid ":monitoring-event:`INSTRUCTION`" |
| 244 | +msgstr "" |
| 245 | + |
| 246 | +#: ../../c-api/monitoring.rst:183 |
| 247 | +msgid ":monitoring-event:`JUMP`" |
| 248 | +msgstr "" |
| 249 | + |
| 250 | +#: ../../c-api/monitoring.rst:184 |
| 251 | +msgid ":monitoring-event:`LINE`" |
| 252 | +msgstr "" |
| 253 | + |
| 254 | +#: ../../c-api/monitoring.rst:185 |
| 255 | +msgid ":monitoring-event:`PY_RESUME`" |
| 256 | +msgstr "" |
| 257 | + |
| 258 | +#: ../../c-api/monitoring.rst:186 |
| 259 | +msgid ":monitoring-event:`PY_RETURN`" |
| 260 | +msgstr "" |
| 261 | + |
| 262 | +#: ../../c-api/monitoring.rst:187 |
| 263 | +msgid ":monitoring-event:`PY_START`" |
| 264 | +msgstr "" |
| 265 | + |
| 266 | +#: ../../c-api/monitoring.rst:188 |
| 267 | +msgid ":monitoring-event:`PY_THROW`" |
| 268 | +msgstr "" |
| 269 | + |
| 270 | +#: ../../c-api/monitoring.rst:189 |
| 271 | +msgid ":monitoring-event:`PY_UNWIND`" |
| 272 | +msgstr "" |
| 273 | + |
| 274 | +#: ../../c-api/monitoring.rst:190 |
| 275 | +msgid ":monitoring-event:`PY_YIELD`" |
| 276 | +msgstr "" |
| 277 | + |
| 278 | +#: ../../c-api/monitoring.rst:191 |
| 279 | +msgid ":monitoring-event:`RAISE`" |
| 280 | +msgstr "" |
| 281 | + |
| 282 | +#: ../../c-api/monitoring.rst:192 |
| 283 | +msgid ":monitoring-event:`RERAISE`" |
| 284 | +msgstr "" |
| 285 | + |
| 286 | +#: ../../c-api/monitoring.rst:193 |
| 287 | +msgid ":monitoring-event:`STOP_ITERATION`" |
| 288 | +msgstr "" |
| 289 | + |
| 290 | +#: ../../c-api/monitoring.rst:198 |
| 291 | +msgid "" |
| 292 | +"Exit the last scope that was entered with " |
| 293 | +":c:func:`!PyMonitoring_EnterScope`." |
| 294 | +msgstr "" |
| 295 | + |
| 296 | +#: ../../c-api/monitoring.rst:203 |
| 297 | +msgid "" |
| 298 | +"Return true if the event corresponding to the event ID *ev* is a :ref:`local" |
| 299 | +" event <monitoring-event-local>`." |
| 300 | +msgstr "" |
| 301 | + |
| 302 | +#: ../../c-api/monitoring.rst:210 |
| 303 | +msgid "This function is :term:`soft deprecated`." |
| 304 | +msgstr "" |
0 commit comments