|
| 1 | +# SOME DESCRIPTIVE TITLE. |
| 2 | +# Copyright (C) 2001-2025, Python Software Foundation |
| 3 | +# This file is distributed under the same license as the Python package. |
| 4 | +# FIRST AUTHOR <EMAIL@ADDRESS>, 2025. |
| 5 | +# |
| 6 | +#, fuzzy |
| 7 | +msgid "" |
| 8 | +msgstr "" |
| 9 | +"Project-Id-Version: Python 3.13\n" |
| 10 | +"Report-Msgid-Bugs-To: \n" |
| 11 | +"POT-Creation-Date: 2025-03-04 13:08+0200\n" |
| 12 | +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 13 | +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 14 | +"Language: ro\n" |
| 15 | +"Language-Team: ro <LL@li.org>\n" |
| 16 | +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100" |
| 17 | +" < 20)) ? 1 : 2);\n" |
| 18 | +"MIME-Version: 1.0\n" |
| 19 | +"Content-Type: text/plain; charset=utf-8\n" |
| 20 | +"Content-Transfer-Encoding: 8bit\n" |
| 21 | +"Generated-By: Babel 2.17.0\n" |
| 22 | + |
| 23 | +#: ../../library/_thread.rst:2 |
| 24 | +msgid ":mod:`!_thread` --- Low-level threading API" |
| 25 | +msgstr "" |
| 26 | + |
| 27 | +#: ../../library/_thread.rst:15 |
| 28 | +msgid "" |
| 29 | +"This module provides low-level primitives for working with multiple " |
| 30 | +"threads (also called :dfn:`light-weight processes` or :dfn:`tasks`) --- " |
| 31 | +"multiple threads of control sharing their global data space. For " |
| 32 | +"synchronization, simple locks (also called :dfn:`mutexes` or :dfn:`binary" |
| 33 | +" semaphores`) are provided. The :mod:`threading` module provides an " |
| 34 | +"easier to use and higher-level threading API built on top of this module." |
| 35 | +msgstr "" |
| 36 | + |
| 37 | +#: ../../library/_thread.rst:26 |
| 38 | +msgid "This module used to be optional, it is now always available." |
| 39 | +msgstr "" |
| 40 | + |
| 41 | +#: ../../library/_thread.rst:29 |
| 42 | +msgid "This module defines the following constants and functions:" |
| 43 | +msgstr "" |
| 44 | + |
| 45 | +#: ../../library/_thread.rst:33 |
| 46 | +msgid "Raised on thread-specific errors." |
| 47 | +msgstr "" |
| 48 | + |
| 49 | +#: ../../library/_thread.rst:35 |
| 50 | +msgid "This is now a synonym of the built-in :exc:`RuntimeError`." |
| 51 | +msgstr "" |
| 52 | + |
| 53 | +#: ../../library/_thread.rst:41 |
| 54 | +msgid "This is the type of lock objects." |
| 55 | +msgstr "" |
| 56 | + |
| 57 | +#: ../../library/_thread.rst:46 |
| 58 | +msgid "" |
| 59 | +"Start a new thread and return its identifier. The thread executes the " |
| 60 | +"function *function* with the argument list *args* (which must be a " |
| 61 | +"tuple). The optional *kwargs* argument specifies a dictionary of keyword " |
| 62 | +"arguments." |
| 63 | +msgstr "" |
| 64 | + |
| 65 | +#: ../../library/_thread.rst:50 |
| 66 | +msgid "When the function returns, the thread silently exits." |
| 67 | +msgstr "" |
| 68 | + |
| 69 | +#: ../../library/_thread.rst:52 |
| 70 | +msgid "" |
| 71 | +"When the function terminates with an unhandled exception, " |
| 72 | +":func:`sys.unraisablehook` is called to handle the exception. The " |
| 73 | +"*object* attribute of the hook argument is *function*. By default, a " |
| 74 | +"stack trace is printed and then the thread exits (but other threads " |
| 75 | +"continue to run)." |
| 76 | +msgstr "" |
| 77 | + |
| 78 | +#: ../../library/_thread.rst:57 |
| 79 | +msgid "" |
| 80 | +"When the function raises a :exc:`SystemExit` exception, it is silently " |
| 81 | +"ignored." |
| 82 | +msgstr "" |
| 83 | + |
| 84 | +#: ../../library/_thread.rst:60 |
| 85 | +msgid "" |
| 86 | +"Raises an :ref:`auditing event <auditing>` ``_thread.start_new_thread`` " |
| 87 | +"with arguments ``function``, ``args``, ``kwargs``." |
| 88 | +msgstr "" |
| 89 | + |
| 90 | +#: ../../library/_thread.rst:62 |
| 91 | +msgid ":func:`sys.unraisablehook` is now used to handle unhandled exceptions." |
| 92 | +msgstr "" |
| 93 | + |
| 94 | +#: ../../library/_thread.rst:68 |
| 95 | +msgid "" |
| 96 | +"Simulate the effect of a signal arriving in the main thread. A thread can" |
| 97 | +" use this function to interrupt the main thread, though there is no " |
| 98 | +"guarantee that the interruption will happen immediately." |
| 99 | +msgstr "" |
| 100 | + |
| 101 | +#: ../../library/_thread.rst:72 |
| 102 | +msgid "" |
| 103 | +"If given, *signum* is the number of the signal to simulate. If *signum* " |
| 104 | +"is not given, :const:`signal.SIGINT` is simulated." |
| 105 | +msgstr "" |
| 106 | + |
| 107 | +#: ../../library/_thread.rst:75 |
| 108 | +msgid "" |
| 109 | +"If the given signal isn't handled by Python (it was set to " |
| 110 | +":const:`signal.SIG_DFL` or :const:`signal.SIG_IGN`), this function does " |
| 111 | +"nothing." |
| 112 | +msgstr "" |
| 113 | + |
| 114 | +#: ../../library/_thread.rst:79 |
| 115 | +msgid "The *signum* argument is added to customize the signal number." |
| 116 | +msgstr "" |
| 117 | + |
| 118 | +#: ../../library/_thread.rst:83 |
| 119 | +msgid "" |
| 120 | +"This does not emit the corresponding signal but schedules a call to the " |
| 121 | +"associated handler (if it exists). If you want to truly emit the signal, " |
| 122 | +"use :func:`signal.raise_signal`." |
| 123 | +msgstr "" |
| 124 | + |
| 125 | +#: ../../library/_thread.rst:90 |
| 126 | +msgid "" |
| 127 | +"Raise the :exc:`SystemExit` exception. When not caught, this will cause " |
| 128 | +"the thread to exit silently." |
| 129 | +msgstr "" |
| 130 | + |
| 131 | +#: ../../library/_thread.rst:104 |
| 132 | +msgid "" |
| 133 | +"Return a new lock object. Methods of locks are described below. The " |
| 134 | +"lock is initially unlocked." |
| 135 | +msgstr "" |
| 136 | + |
| 137 | +#: ../../library/_thread.rst:110 |
| 138 | +msgid "" |
| 139 | +"Return the 'thread identifier' of the current thread. This is a nonzero " |
| 140 | +"integer. Its value has no direct meaning; it is intended as a magic " |
| 141 | +"cookie to be used e.g. to index a dictionary of thread-specific data. " |
| 142 | +"Thread identifiers may be recycled when a thread exits and another thread" |
| 143 | +" is created." |
| 144 | +msgstr "" |
| 145 | + |
| 146 | +#: ../../library/_thread.rst:118 |
| 147 | +msgid "" |
| 148 | +"Return the native integral Thread ID of the current thread assigned by " |
| 149 | +"the kernel. This is a non-negative integer. Its value may be used to " |
| 150 | +"uniquely identify this particular thread system-wide (until the thread " |
| 151 | +"terminates, after which the value may be recycled by the OS)." |
| 152 | +msgstr "" |
| 153 | + |
| 154 | +#: ../../library/_thread.rst:123 ../../library/_thread.rst:148 |
| 155 | +msgid "Availability" |
| 156 | +msgstr "" |
| 157 | + |
| 158 | +#: ../../library/_thread.rst:127 |
| 159 | +msgid "Added support for GNU/kFreeBSD." |
| 160 | +msgstr "" |
| 161 | + |
| 162 | +#: ../../library/_thread.rst:133 |
| 163 | +msgid "" |
| 164 | +"Return the thread stack size used when creating new threads. The " |
| 165 | +"optional *size* argument specifies the stack size to be used for " |
| 166 | +"subsequently created threads, and must be 0 (use platform or configured " |
| 167 | +"default) or a positive integer value of at least 32,768 (32 KiB). If " |
| 168 | +"*size* is not specified, 0 is used. If changing the thread stack size is" |
| 169 | +" unsupported, a :exc:`RuntimeError` is raised. If the specified stack " |
| 170 | +"size is invalid, a :exc:`ValueError` is raised and the stack size is " |
| 171 | +"unmodified. 32 KiB is currently the minimum supported stack size value " |
| 172 | +"to guarantee sufficient stack space for the interpreter itself. Note " |
| 173 | +"that some platforms may have particular restrictions on values for the " |
| 174 | +"stack size, such as requiring a minimum stack size > 32 KiB or requiring " |
| 175 | +"allocation in multiples of the system memory page size - platform " |
| 176 | +"documentation should be referred to for more information (4 KiB pages are" |
| 177 | +" common; using multiples of 4096 for the stack size is the suggested " |
| 178 | +"approach in the absence of more specific information)." |
| 179 | +msgstr "" |
| 180 | + |
| 181 | +#: ../../library/_thread.rst:150 |
| 182 | +msgid "Unix platforms with POSIX threads support." |
| 183 | +msgstr "" |
| 184 | + |
| 185 | +#: ../../library/_thread.rst:155 |
| 186 | +msgid "" |
| 187 | +"The maximum value allowed for the *timeout* parameter of " |
| 188 | +":meth:`Lock.acquire <threading.Lock.acquire>`. Specifying a timeout " |
| 189 | +"greater than this value will raise an :exc:`OverflowError`." |
| 190 | +msgstr "" |
| 191 | + |
| 192 | +#: ../../library/_thread.rst:162 |
| 193 | +msgid "Lock objects have the following methods:" |
| 194 | +msgstr "" |
| 195 | + |
| 196 | +#: ../../library/_thread.rst:167 |
| 197 | +msgid "" |
| 198 | +"Without any optional argument, this method acquires the lock " |
| 199 | +"unconditionally, if necessary waiting until it is released by another " |
| 200 | +"thread (only one thread at a time can acquire a lock --- that's their " |
| 201 | +"reason for existence)." |
| 202 | +msgstr "" |
| 203 | + |
| 204 | +#: ../../library/_thread.rst:171 |
| 205 | +msgid "" |
| 206 | +"If the *blocking* argument is present, the action depends on its value: " |
| 207 | +"if it is false, the lock is only acquired if it can be acquired " |
| 208 | +"immediately without waiting, while if it is true, the lock is acquired " |
| 209 | +"unconditionally as above." |
| 210 | +msgstr "" |
| 211 | + |
| 212 | +#: ../../library/_thread.rst:176 |
| 213 | +msgid "" |
| 214 | +"If the floating-point *timeout* argument is present and positive, it " |
| 215 | +"specifies the maximum wait time in seconds before returning. A negative " |
| 216 | +"*timeout* argument specifies an unbounded wait. You cannot specify a " |
| 217 | +"*timeout* if *blocking* is false." |
| 218 | +msgstr "" |
| 219 | + |
| 220 | +#: ../../library/_thread.rst:181 |
| 221 | +msgid "" |
| 222 | +"The return value is ``True`` if the lock is acquired successfully, " |
| 223 | +"``False`` if not." |
| 224 | +msgstr "" |
| 225 | + |
| 226 | +#: ../../library/_thread.rst:184 |
| 227 | +msgid "The *timeout* parameter is new." |
| 228 | +msgstr "" |
| 229 | + |
| 230 | +#: ../../library/_thread.rst:187 |
| 231 | +msgid "Lock acquires can now be interrupted by signals on POSIX." |
| 232 | +msgstr "" |
| 233 | + |
| 234 | +#: ../../library/_thread.rst:193 |
| 235 | +msgid "" |
| 236 | +"Releases the lock. The lock must have been acquired earlier, but not " |
| 237 | +"necessarily by the same thread." |
| 238 | +msgstr "" |
| 239 | + |
| 240 | +#: ../../library/_thread.rst:199 |
| 241 | +msgid "" |
| 242 | +"Return the status of the lock: ``True`` if it has been acquired by some " |
| 243 | +"thread, ``False`` if not." |
| 244 | +msgstr "" |
| 245 | + |
| 246 | +#: ../../library/_thread.rst:202 |
| 247 | +msgid "" |
| 248 | +"In addition to these methods, lock objects can also be used via the " |
| 249 | +":keyword:`with` statement, e.g.::" |
| 250 | +msgstr "" |
| 251 | + |
| 252 | +#: ../../library/_thread.rst:205 |
| 253 | +msgid "" |
| 254 | +"import _thread\n" |
| 255 | +"\n" |
| 256 | +"a_lock = _thread.allocate_lock()\n" |
| 257 | +"\n" |
| 258 | +"with a_lock:\n" |
| 259 | +" print(\"a_lock is locked while this executes\")" |
| 260 | +msgstr "" |
| 261 | + |
| 262 | +#: ../../library/_thread.rst:212 |
| 263 | +msgid "**Caveats:**" |
| 264 | +msgstr "" |
| 265 | + |
| 266 | +#: ../../library/_thread.rst:216 |
| 267 | +msgid "" |
| 268 | +"Interrupts always go to the main thread (the :exc:`KeyboardInterrupt` " |
| 269 | +"exception will be received by that thread.)" |
| 270 | +msgstr "" |
| 271 | + |
| 272 | +#: ../../library/_thread.rst:219 |
| 273 | +msgid "" |
| 274 | +"Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is " |
| 275 | +"equivalent to calling :func:`_thread.exit`." |
| 276 | +msgstr "" |
| 277 | + |
| 278 | +#: ../../library/_thread.rst:222 |
| 279 | +msgid "" |
| 280 | +"It is platform-dependent whether the :meth:`~threading.Lock.acquire` " |
| 281 | +"method on a lock can be interrupted (so that the :exc:`KeyboardInterrupt`" |
| 282 | +" exception will happen immediately, rather than only after the lock has " |
| 283 | +"been acquired or the operation has timed out). It can be interrupted on " |
| 284 | +"POSIX, but not on Windows." |
| 285 | +msgstr "" |
| 286 | + |
| 287 | +#: ../../library/_thread.rst:228 |
| 288 | +msgid "" |
| 289 | +"When the main thread exits, it is system defined whether the other " |
| 290 | +"threads survive. On most systems, they are killed without executing " |
| 291 | +":keyword:`try` ... :keyword:`finally` clauses or executing object " |
| 292 | +"destructors." |
| 293 | +msgstr "" |
| 294 | + |
| 295 | +#: ../../library/_thread.rst:7 |
| 296 | +msgid "light-weight processes" |
| 297 | +msgstr "" |
| 298 | + |
| 299 | +#: ../../library/_thread.rst:7 |
| 300 | +msgid "processes, light-weight" |
| 301 | +msgstr "" |
| 302 | + |
| 303 | +#: ../../library/_thread.rst:7 |
| 304 | +msgid "binary semaphores" |
| 305 | +msgstr "" |
| 306 | + |
| 307 | +#: ../../library/_thread.rst:7 |
| 308 | +msgid "semaphores, binary" |
| 309 | +msgstr "" |
| 310 | + |
| 311 | +#: ../../library/_thread.rst:22 |
| 312 | +msgid "pthreads" |
| 313 | +msgstr "" |
| 314 | + |
| 315 | +#: ../../library/_thread.rst:22 |
| 316 | +msgid "threads" |
| 317 | +msgstr "" |
| 318 | + |
| 319 | +#: ../../library/_thread.rst:22 |
| 320 | +msgid "POSIX" |
| 321 | +msgstr "" |
| 322 | + |
| 323 | +#: ../../library/_thread.rst:214 |
| 324 | +msgid "module" |
| 325 | +msgstr "" |
| 326 | + |
| 327 | +#: ../../library/_thread.rst:214 |
| 328 | +msgid "signal" |
| 329 | +msgstr "" |
| 330 | + |
0 commit comments