|
| 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.15\n" |
| 10 | +"Report-Msgid-Bugs-To: \n" |
| 11 | +"POT-Creation-Date: 2026-06-21 15:47+0000\n" |
| 12 | +"PO-Revision-Date: 2025-09-16 00:00+0000\n" |
| 13 | +"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/" |
| 14 | +"teams/5390/pa/)\n" |
| 15 | +"MIME-Version: 1.0\n" |
| 16 | +"Content-Type: text/plain; charset=UTF-8\n" |
| 17 | +"Content-Transfer-Encoding: 8bit\n" |
| 18 | +"Language: pa\n" |
| 19 | +"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
| 20 | + |
| 21 | +msgid "Allocating objects on the heap" |
| 22 | +msgstr "" |
| 23 | + |
| 24 | +msgid "" |
| 25 | +"Initialize a newly allocated object *op* with its type and initial " |
| 26 | +"reference. Returns the initialized object. Other fields of the object are " |
| 27 | +"not initialized. Despite its name, this function is unrelated to the " |
| 28 | +"object's :meth:`~object.__init__` method (:c:member:`~PyTypeObject.tp_init` " |
| 29 | +"slot). Specifically, this function does **not** call the object's :meth:`!" |
| 30 | +"__init__` method." |
| 31 | +msgstr "" |
| 32 | + |
| 33 | +msgid "" |
| 34 | +"In general, consider this function to be a low-level routine. Use :c:member:" |
| 35 | +"`~PyTypeObject.tp_alloc` where possible. For implementing :c:member:`!" |
| 36 | +"tp_alloc` for your type, prefer :c:func:`PyType_GenericAlloc` or :c:func:" |
| 37 | +"`PyObject_New`." |
| 38 | +msgstr "" |
| 39 | + |
| 40 | +msgid "" |
| 41 | +"This function only initializes the object's memory corresponding to the " |
| 42 | +"initial :c:type:`PyObject` structure. It does not zero the rest." |
| 43 | +msgstr "" |
| 44 | + |
| 45 | +msgid "" |
| 46 | +"This does everything :c:func:`PyObject_Init` does, and also initializes the " |
| 47 | +"length information for a variable-size object." |
| 48 | +msgstr "" |
| 49 | + |
| 50 | +msgid "" |
| 51 | +"This function only initializes some of the object's memory. It does not " |
| 52 | +"zero the rest." |
| 53 | +msgstr "" |
| 54 | + |
| 55 | +msgid "" |
| 56 | +"Allocates a new Python object using the C structure type *TYPE* and the " |
| 57 | +"Python type object *typeobj* (``PyTypeObject*``) by calling :c:func:" |
| 58 | +"`PyObject_Malloc` to allocate memory and initializing it like :c:func:" |
| 59 | +"`PyObject_Init`. The caller will own the only reference to the object (i.e. " |
| 60 | +"its reference count will be one)." |
| 61 | +msgstr "" |
| 62 | + |
| 63 | +msgid "" |
| 64 | +"Avoid calling this directly to allocate memory for an object; call the " |
| 65 | +"type's :c:member:`~PyTypeObject.tp_alloc` slot instead." |
| 66 | +msgstr "" |
| 67 | + |
| 68 | +msgid "" |
| 69 | +"When populating a type's :c:member:`~PyTypeObject.tp_alloc` slot, :c:func:" |
| 70 | +"`PyType_GenericAlloc` is preferred over a custom function that simply calls " |
| 71 | +"this macro." |
| 72 | +msgstr "" |
| 73 | + |
| 74 | +msgid "" |
| 75 | +"This macro does not call :c:member:`~PyTypeObject.tp_alloc`, :c:member:" |
| 76 | +"`~PyTypeObject.tp_new` (:meth:`~object.__new__`), or :c:member:" |
| 77 | +"`~PyTypeObject.tp_init` (:meth:`~object.__init__`)." |
| 78 | +msgstr "" |
| 79 | + |
| 80 | +msgid "" |
| 81 | +"This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in :c:" |
| 82 | +"member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_New` instead." |
| 83 | +msgstr "" |
| 84 | + |
| 85 | +msgid "" |
| 86 | +"Memory allocated by this macro must be freed with :c:func:`PyObject_Free` " |
| 87 | +"(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)." |
| 88 | +msgstr "" |
| 89 | + |
| 90 | +msgid "" |
| 91 | +"The returned memory is not guaranteed to have been completely zeroed before " |
| 92 | +"it was initialized." |
| 93 | +msgstr "" |
| 94 | + |
| 95 | +msgid "" |
| 96 | +"This macro does not construct a fully initialized object of the given type; " |
| 97 | +"it merely allocates memory and prepares it for further initialization by :c:" |
| 98 | +"member:`~PyTypeObject.tp_init`. To construct a fully initialized object, " |
| 99 | +"call *typeobj* instead. For example::" |
| 100 | +msgstr "" |
| 101 | + |
| 102 | +msgid "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type);" |
| 103 | +msgstr "" |
| 104 | + |
| 105 | +msgid ":c:func:`PyObject_Free`" |
| 106 | +msgstr "" |
| 107 | + |
| 108 | +msgid ":c:macro:`PyObject_GC_New`" |
| 109 | +msgstr "" |
| 110 | + |
| 111 | +msgid ":c:func:`PyType_GenericAlloc`" |
| 112 | +msgstr "" |
| 113 | + |
| 114 | +msgid ":c:member:`~PyTypeObject.tp_alloc`" |
| 115 | +msgstr "" |
| 116 | + |
| 117 | +msgid "Like :c:macro:`PyObject_New` except:" |
| 118 | +msgstr "" |
| 119 | + |
| 120 | +msgid "" |
| 121 | +"It allocates enough memory for the *TYPE* structure plus *size* " |
| 122 | +"(``Py_ssize_t``) fields of the size given by the :c:member:`~PyTypeObject." |
| 123 | +"tp_itemsize` field of *typeobj*." |
| 124 | +msgstr "" |
| 125 | + |
| 126 | +msgid "The memory is initialized like :c:func:`PyObject_InitVar`." |
| 127 | +msgstr "" |
| 128 | + |
| 129 | +msgid "" |
| 130 | +"This is useful for implementing objects like tuples, which are able to " |
| 131 | +"determine their size at construction time. Embedding the array of fields " |
| 132 | +"into the same allocation decreases the number of allocations, improving the " |
| 133 | +"memory management efficiency." |
| 134 | +msgstr "" |
| 135 | + |
| 136 | +msgid "" |
| 137 | +"This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in :c:" |
| 138 | +"member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_NewVar` instead." |
| 139 | +msgstr "" |
| 140 | + |
| 141 | +msgid "" |
| 142 | +"Memory allocated by this function must be freed with :c:func:`PyObject_Free` " |
| 143 | +"(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)." |
| 144 | +msgstr "" |
| 145 | + |
| 146 | +msgid "" |
| 147 | +"PyObject *list_instance = PyObject_CallNoArgs((PyObject *)&PyList_Type);" |
| 148 | +msgstr "" |
| 149 | + |
| 150 | +msgid ":c:macro:`PyObject_GC_NewVar`" |
| 151 | +msgstr "" |
| 152 | + |
| 153 | +msgid "" |
| 154 | +"Object which is visible in Python as ``None``. This should only be accessed " |
| 155 | +"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this " |
| 156 | +"object." |
| 157 | +msgstr "" |
| 158 | + |
| 159 | +msgid ":ref:`moduleobjects`" |
| 160 | +msgstr "" |
| 161 | + |
| 162 | +msgid "To allocate and create extension modules." |
| 163 | +msgstr "" |
| 164 | + |
| 165 | +msgid "Soft-deprecated aliases" |
| 166 | +msgstr "" |
| 167 | + |
| 168 | +msgid "" |
| 169 | +"These are aliases to existing functions and macros. They exist solely for " |
| 170 | +"backwards compatibility." |
| 171 | +msgstr "" |
| 172 | + |
| 173 | +msgid "Soft-deprecated alias" |
| 174 | +msgstr "" |
| 175 | + |
| 176 | +msgid "Function" |
| 177 | +msgstr "" |
| 178 | + |
| 179 | +msgid ":c:macro:`PyObject_New`" |
| 180 | +msgstr "" |
| 181 | + |
| 182 | +msgid ":c:macro:`PyObject_NewVar`" |
| 183 | +msgstr "" |
| 184 | + |
| 185 | +msgid ":c:func:`PyObject_Init`" |
| 186 | +msgstr "" |
| 187 | + |
| 188 | +msgid ":c:func:`PyObject_InitVar`" |
| 189 | +msgstr "" |
| 190 | + |
| 191 | +msgid ":c:func:`PyObject_Malloc`" |
| 192 | +msgstr "" |
| 193 | + |
| 194 | +msgid ":c:func:`PyObject_Realloc`" |
| 195 | +msgstr "" |
0 commit comments