|
| 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 | +# Translators: |
| 7 | +# Bhuvansh Kataria, 2026 |
| 8 | +# |
| 9 | +#, fuzzy |
| 10 | +msgid "" |
| 11 | +msgstr "" |
| 12 | +"Project-Id-Version: Python 3.15\n" |
| 13 | +"Report-Msgid-Bugs-To: \n" |
| 14 | +"POT-Creation-Date: 2026-06-25 16:18+0000\n" |
| 15 | +"PO-Revision-Date: 2025-09-16 00:00+0000\n" |
| 16 | +"Last-Translator: Bhuvansh Kataria, 2026\n" |
| 17 | +"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/" |
| 18 | +"teams/5390/pa/)\n" |
| 19 | +"MIME-Version: 1.0\n" |
| 20 | +"Content-Type: text/plain; charset=UTF-8\n" |
| 21 | +"Content-Transfer-Encoding: 8bit\n" |
| 22 | +"Language: pa\n" |
| 23 | +"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
| 24 | + |
| 25 | +msgid "Policies" |
| 26 | +msgstr "" |
| 27 | + |
| 28 | +msgid "" |
| 29 | +"Policies are deprecated and will be removed in Python 3.16. Users are " |
| 30 | +"encouraged to use the :func:`asyncio.run` function or the :class:`asyncio." |
| 31 | +"Runner` with *loop_factory* to use the desired loop implementation." |
| 32 | +msgstr "" |
| 33 | + |
| 34 | +msgid "" |
| 35 | +"An event loop policy is a global object used to get and set the current :ref:" |
| 36 | +"`event loop <asyncio-event-loop>`, as well as create new event loops. The " |
| 37 | +"default policy can be :ref:`replaced <asyncio-policy-get-set>` with :ref:" |
| 38 | +"`built-in alternatives <asyncio-policy-builtin>` to use different event loop " |
| 39 | +"implementations, or substituted by a :ref:`custom policy <asyncio-custom-" |
| 40 | +"policies>` that can override these behaviors." |
| 41 | +msgstr "" |
| 42 | + |
| 43 | +msgid "" |
| 44 | +"The :ref:`policy object <asyncio-policy-objects>` gets and sets a separate " |
| 45 | +"event loop per *context*. This is per-thread by default, though custom " |
| 46 | +"policies could define *context* differently." |
| 47 | +msgstr "" |
| 48 | + |
| 49 | +msgid "" |
| 50 | +"Custom event loop policies can control the behavior of :func:" |
| 51 | +"`get_event_loop`, :func:`set_event_loop`, and :func:`new_event_loop`." |
| 52 | +msgstr "" |
| 53 | + |
| 54 | +msgid "" |
| 55 | +"Policy objects should implement the APIs defined in the :class:" |
| 56 | +"`AbstractEventLoopPolicy` abstract base class." |
| 57 | +msgstr "" |
| 58 | + |
| 59 | +msgid "Getting and Setting the Policy" |
| 60 | +msgstr "" |
| 61 | + |
| 62 | +msgid "" |
| 63 | +"The following functions can be used to get and set the policy for the " |
| 64 | +"current process:" |
| 65 | +msgstr "" |
| 66 | + |
| 67 | +msgid "Return the current process-wide policy." |
| 68 | +msgstr "" |
| 69 | + |
| 70 | +msgid "" |
| 71 | +"The :func:`get_event_loop_policy` function is deprecated and will be removed " |
| 72 | +"in Python 3.16." |
| 73 | +msgstr "" |
| 74 | + |
| 75 | +msgid "Set the current process-wide policy to *policy*." |
| 76 | +msgstr "" |
| 77 | + |
| 78 | +msgid "If *policy* is set to ``None``, the default policy is restored." |
| 79 | +msgstr "" |
| 80 | + |
| 81 | +msgid "" |
| 82 | +"The :func:`set_event_loop_policy` function is deprecated and will be removed " |
| 83 | +"in Python 3.16." |
| 84 | +msgstr "" |
| 85 | + |
| 86 | +msgid "Policy Objects" |
| 87 | +msgstr "" |
| 88 | + |
| 89 | +msgid "The abstract event loop policy base class is defined as follows:" |
| 90 | +msgstr "" |
| 91 | + |
| 92 | +msgid "An abstract base class for asyncio policies." |
| 93 | +msgstr "" |
| 94 | + |
| 95 | +msgid "Get the event loop for the current context." |
| 96 | +msgstr "" |
| 97 | + |
| 98 | +msgid "" |
| 99 | +"Return an event loop object implementing the :class:`AbstractEventLoop` " |
| 100 | +"interface." |
| 101 | +msgstr "" |
| 102 | + |
| 103 | +msgid "This method should never return ``None``." |
| 104 | +msgstr "" |
| 105 | + |
| 106 | +msgid "Set the event loop for the current context to *loop*." |
| 107 | +msgstr "" |
| 108 | + |
| 109 | +msgid "Create and return a new event loop object." |
| 110 | +msgstr "" |
| 111 | + |
| 112 | +msgid "" |
| 113 | +"The :class:`AbstractEventLoopPolicy` class is deprecated and will be removed " |
| 114 | +"in Python 3.16." |
| 115 | +msgstr "" |
| 116 | + |
| 117 | +msgid "asyncio ships with the following built-in policies:" |
| 118 | +msgstr "" |
| 119 | + |
| 120 | +msgid "" |
| 121 | +"The default asyncio policy. Uses :class:`SelectorEventLoop` on Unix and :" |
| 122 | +"class:`ProactorEventLoop` on Windows." |
| 123 | +msgstr "" |
| 124 | + |
| 125 | +msgid "" |
| 126 | +"There is no need to install the default policy manually. asyncio is " |
| 127 | +"configured to use the default policy automatically." |
| 128 | +msgstr "" |
| 129 | + |
| 130 | +msgid "On Windows, :class:`ProactorEventLoop` is now used by default." |
| 131 | +msgstr "" |
| 132 | + |
| 133 | +msgid "" |
| 134 | +"The :meth:`get_event_loop` method of the default asyncio policy now raises " |
| 135 | +"a :exc:`RuntimeError` if there is no set event loop." |
| 136 | +msgstr "" |
| 137 | + |
| 138 | +msgid "" |
| 139 | +"The :class:`DefaultEventLoopPolicy` class is deprecated and will be removed " |
| 140 | +"in Python 3.16." |
| 141 | +msgstr "" |
| 142 | + |
| 143 | +msgid "" |
| 144 | +"An alternative event loop policy that uses the :class:`SelectorEventLoop` " |
| 145 | +"event loop implementation." |
| 146 | +msgstr "" |
| 147 | + |
| 148 | +msgid "Availability" |
| 149 | +msgstr "ਉਪਲਬਧਤਾ" |
| 150 | + |
| 151 | +msgid "" |
| 152 | +"The :class:`WindowsSelectorEventLoopPolicy` class is deprecated and will be " |
| 153 | +"removed in Python 3.16." |
| 154 | +msgstr "" |
| 155 | + |
| 156 | +msgid "" |
| 157 | +"An alternative event loop policy that uses the :class:`ProactorEventLoop` " |
| 158 | +"event loop implementation." |
| 159 | +msgstr "" |
| 160 | + |
| 161 | +msgid "" |
| 162 | +"The :class:`WindowsProactorEventLoopPolicy` class is deprecated and will be " |
| 163 | +"removed in Python 3.16." |
| 164 | +msgstr "" |
| 165 | + |
| 166 | +msgid "Custom Policies" |
| 167 | +msgstr "" |
| 168 | + |
| 169 | +msgid "" |
| 170 | +"To implement a new event loop policy, it is recommended to subclass :class:" |
| 171 | +"`DefaultEventLoopPolicy` and override the methods for which custom behavior " |
| 172 | +"is wanted, e.g.::" |
| 173 | +msgstr "" |
| 174 | + |
| 175 | +msgid "" |
| 176 | +"class MyEventLoopPolicy(asyncio.DefaultEventLoopPolicy):\n" |
| 177 | +"\n" |
| 178 | +" def get_event_loop(self):\n" |
| 179 | +" \"\"\"Get the event loop.\n" |
| 180 | +"\n" |
| 181 | +" This may be None or an instance of EventLoop.\n" |
| 182 | +" \"\"\"\n" |
| 183 | +" loop = super().get_event_loop()\n" |
| 184 | +" # Do something with loop ...\n" |
| 185 | +" return loop\n" |
| 186 | +"\n" |
| 187 | +"asyncio.set_event_loop_policy(MyEventLoopPolicy())" |
| 188 | +msgstr "" |
0 commit comments