| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 12bddc0 commit 61541e5
125 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,19 +11,21 @@ msgid "" | |||
| 11 | 11 | msgstr "" | |
| 12 | 12 | "Project-Id-Version: Python 3.14\n" | |
| 13 | 13 | "Report-Msgid-Bugs-To: \n" | |
| 14 | - "POT-Creation-Date: 2025-10-25 14:12+0000\n" | ||
| 14 | + "POT-Creation-Date: 2026-09-15 09:12+0000\n" | ||
| 15 | 15 | "PO-Revision-Date: 2025-09-16 00:00+0000\n" | |
| 16 | 16 | "Last-Translator: python-doc bot, 2025\n" | |
| 17 | 17 | "Language-Team: German (https://app.transifex.com/python-doc/teams/5390/de/)\n" | |
| 18 | + "Language: de\n" | ||
| 18 | 19 | "MIME-Version: 1.0\n" | |
| 19 | 20 | "Content-Type: text/plain; charset=UTF-8\n" | |
| 20 | 21 | "Content-Transfer-Encoding: 8bit\n" | |
| 21 | - "Language: de\n" | ||
| 22 | 22 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" | |
| 23 | 23 | ||
| 24 | + #: ../../c-api/abstract.rst:7 | ||
| 24 | 25 | msgid "Abstract Objects Layer" | |
| 25 | 26 | msgstr "Abstrakte Objekte Schicht" | |
| 26 | 27 | ||
| 28 | + #: ../../c-api/abstract.rst:9 | ||
| 27 | 29 | msgid "" | |
| 28 | 30 | "The functions in this chapter interact with Python objects regardless of " | |
| 29 | 31 | "their type, or with wide classes of object types (e.g. all numerical types, " | |
@@ -36,6 +38,7 @@ msgstr "" | |||
| 36 | 38 | "verwendet werden, für die sie nicht gelten, lösen sie eine Python-Ausnahme " | |
| 37 | 39 | "aus." | |
| 38 | 40 | ||
| 41 | + #: ../../c-api/abstract.rst:14 | ||
| 39 | 42 | msgid "" | |
| 40 | 43 | "It is not possible to use these functions on objects that are not properly " | |
| 41 | 44 | "initialized, such as a list object that has been created by :c:func:" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,18 +8,20 @@ msgid "" | |||
| 8 | 8 | msgstr "" | |
| 9 | 9 | "Project-Id-Version: Python 3.14\n" | |
| 10 | 10 | "Report-Msgid-Bugs-To: \n" | |
| 11 | - "POT-Creation-Date: 2025-10-25 14:12+0000\n" | ||
| 11 | + "POT-Creation-Date: 2026-09-15 09:12+0000\n" | ||
| 12 | 12 | "PO-Revision-Date: 2025-09-16 00:00+0000\n" | |
| 13 | 13 | "Language-Team: German (https://app.transifex.com/python-doc/teams/5390/de/)\n" | |
| 14 | + "Language: de\n" | ||
| 14 | 15 | "MIME-Version: 1.0\n" | |
| 15 | 16 | "Content-Type: text/plain; charset=UTF-8\n" | |
| 16 | 17 | "Content-Transfer-Encoding: 8bit\n" | |
| 17 | - "Language: de\n" | ||
| 18 | 18 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" | |
| 19 | 19 | ||
| 20 | - msgid "Allocating Objects on the Heap" | ||
| 20 | + #: ../../c-api/allocation.rst:6 | ||
| 21 | + msgid "Allocating objects on the heap" | ||
| 21 | 22 | msgstr "" | |
| 22 | 23 | ||
| 24 | + #: ../../c-api/allocation.rst:17 | ||
| 23 | 25 | msgid "" | |
| 24 | 26 | "Initialize a newly allocated object *op* with its type and initial " | |
| 25 | 27 | "reference. Returns the initialized object. Other fields of the object are " | |
@@ -29,28 +31,33 @@ msgid "" | |||
| 29 | 31 | "__init__` method." | |
| 30 | 32 | msgstr "" | |
| 31 | 33 | ||
| 34 | + #: ../../c-api/allocation.rst:24 | ||
| 32 | 35 | msgid "" | |
| 33 | 36 | "In general, consider this function to be a low-level routine. Use :c:member:" | |
| 34 | 37 | "`~PyTypeObject.tp_alloc` where possible. For implementing :c:member:`!" | |
| 35 | 38 | "tp_alloc` for your type, prefer :c:func:`PyType_GenericAlloc` or :c:func:" | |
| 36 | 39 | "`PyObject_New`." | |
| 37 | 40 | msgstr "" | |
| 38 | 41 | ||
| 42 | + #: ../../c-api/allocation.rst:31 | ||
| 39 | 43 | msgid "" | |
| 40 | 44 | "This function only initializes the object's memory corresponding to the " | |
| 41 | 45 | "initial :c:type:`PyObject` structure. It does not zero the rest." | |
| 42 | 46 | msgstr "" | |
| 43 | 47 | ||
| 48 | + #: ../../c-api/allocation.rst:37 | ||
| 44 | 49 | msgid "" | |
| 45 | 50 | "This does everything :c:func:`PyObject_Init` does, and also initializes the " | |
| 46 | 51 | "length information for a variable-size object." | |
| 47 | 52 | msgstr "" | |
| 48 | 53 | ||
| 54 | + #: ../../c-api/allocation.rst:42 | ||
| 49 | 55 | msgid "" | |
| 50 | 56 | "This function only initializes some of the object's memory. It does not " | |
| 51 | 57 | "zero the rest." | |
| 52 | 58 | msgstr "" | |
| 53 | 59 | ||
| 60 | + #: ../../c-api/allocation.rst:48 | ||
| 54 | 61 | msgid "" | |
| 55 | 62 | "Allocates a new Python object using the C structure type *TYPE* and the " | |
| 56 | 63 | "Python type object *typeobj* (``PyTypeObject*``) by calling :c:func:" | |
@@ -59,107 +66,171 @@ msgid "" | |||
| 59 | 66 | "its reference count will be one)." | |
| 60 | 67 | msgstr "" | |
| 61 | 68 | ||
| 69 | + #: ../../c-api/allocation.rst:54 ../../c-api/allocation.rst:107 | ||
| 62 | 70 | msgid "" | |
| 63 | 71 | "Avoid calling this directly to allocate memory for an object; call the " | |
| 64 | 72 | "type's :c:member:`~PyTypeObject.tp_alloc` slot instead." | |
| 65 | 73 | msgstr "" | |
| 66 | 74 | ||
| 75 | + #: ../../c-api/allocation.rst:57 ../../c-api/allocation.rst:110 | ||
| 67 | 76 | msgid "" | |
| 68 | 77 | "When populating a type's :c:member:`~PyTypeObject.tp_alloc` slot, :c:func:" | |
| 69 | 78 | "`PyType_GenericAlloc` is preferred over a custom function that simply calls " | |
| 70 | 79 | "this macro." | |
| 71 | 80 | msgstr "" | |
| 72 | 81 | ||
| 82 | + #: ../../c-api/allocation.rst:61 | ||
| 73 | 83 | msgid "" | |
| 74 | 84 | "This macro does not call :c:member:`~PyTypeObject.tp_alloc`, :c:member:" | |
| 75 | 85 | "`~PyTypeObject.tp_new` (:meth:`~object.__new__`), or :c:member:" | |
| 76 | 86 | "`~PyTypeObject.tp_init` (:meth:`~object.__init__`)." | |
| 77 | 87 | msgstr "" | |
| 78 | 88 | ||
| 89 | + #: ../../c-api/allocation.rst:65 | ||
| 79 | 90 | msgid "" | |
| 80 | 91 | "This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in :c:" | |
| 81 | 92 | "member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_New` instead." | |
| 82 | 93 | msgstr "" | |
| 83 | 94 | ||
| 95 | + #: ../../c-api/allocation.rst:68 | ||
| 84 | 96 | msgid "" | |
| 85 | 97 | "Memory allocated by this macro must be freed with :c:func:`PyObject_Free` " | |
| 86 | 98 | "(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)." | |
| 87 | 99 | msgstr "" | |
| 88 | 100 | ||
| 101 | + #: ../../c-api/allocation.rst:73 ../../c-api/allocation.rst:123 | ||
| 89 | 102 | msgid "" | |
| 90 | 103 | "The returned memory is not guaranteed to have been completely zeroed before " | |
| 91 | 104 | "it was initialized." | |
| 92 | 105 | msgstr "" | |
| 93 | 106 | ||
| 107 | + #: ../../c-api/allocation.rst:78 ../../c-api/allocation.rst:128 | ||
| 94 | 108 | msgid "" | |
| 95 | 109 | "This macro does not construct a fully initialized object of the given type; " | |
| 96 | 110 | "it merely allocates memory and prepares it for further initialization by :c:" | |
| 97 | 111 | "member:`~PyTypeObject.tp_init`. To construct a fully initialized object, " | |
| 98 | 112 | "call *typeobj* instead. For example::" | |
| 99 | 113 | msgstr "" | |
| 100 | 114 | ||
| 115 | + #: ../../c-api/allocation.rst:83 | ||
| 101 | 116 | msgid "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type);" | |
| 102 | 117 | msgstr "" | |
| 103 | 118 | ||
| 119 | + #: ../../c-api/allocation.rst:87 ../../c-api/allocation.rst:137 | ||
| 120 | + #: ../../c-api/allocation.rst:184 ../../c-api/allocation.rst:186 | ||
| 121 | + #: ../../c-api/allocation.rst:188 | ||
| 104 | 122 | msgid ":c:func:`PyObject_Free`" | |
| 105 | 123 | msgstr "" | |
| 106 | 124 | ||
| 125 | + #: ../../c-api/allocation.rst:88 | ||
| 107 | 126 | msgid ":c:macro:`PyObject_GC_New`" | |
| 108 | 127 | msgstr "" | |
| 109 | 128 | ||
| 129 | + #: ../../c-api/allocation.rst:89 ../../c-api/allocation.rst:139 | ||
| 110 | 130 | msgid ":c:func:`PyType_GenericAlloc`" | |
| 111 | 131 | msgstr "" | |
| 112 | 132 | ||
| 133 | + #: ../../c-api/allocation.rst:90 ../../c-api/allocation.rst:140 | ||
| 113 | 134 | msgid ":c:member:`~PyTypeObject.tp_alloc`" | |
| 114 | 135 | msgstr "" | |
| 115 | 136 | ||
| 137 | + #: ../../c-api/allocation.rst:95 | ||
| 116 | 138 | msgid "Like :c:macro:`PyObject_New` except:" | |
| 117 | 139 | msgstr "" | |
| 118 | 140 | ||
| 141 | + #: ../../c-api/allocation.rst:97 | ||
| 119 | 142 | msgid "" | |
| 120 | 143 | "It allocates enough memory for the *TYPE* structure plus *size* " | |
| 121 | 144 | "(``Py_ssize_t``) fields of the size given by the :c:member:`~PyTypeObject." | |
| 122 | 145 | "tp_itemsize` field of *typeobj*." | |
| 123 | 146 | msgstr "" | |
| 124 | 147 | ||
| 148 | + #: ../../c-api/allocation.rst:100 | ||
| 125 | 149 | msgid "The memory is initialized like :c:func:`PyObject_InitVar`." | |
| 126 | 150 | msgstr "" | |
| 127 | 151 | ||
| 152 | + #: ../../c-api/allocation.rst:102 | ||
| 128 | 153 | msgid "" | |
| 129 | 154 | "This is useful for implementing objects like tuples, which are able to " | |
| 130 | 155 | "determine their size at construction time. Embedding the array of fields " | |
| 131 | 156 | "into the same allocation decreases the number of allocations, improving the " | |
| 132 | 157 | "memory management efficiency." | |
| 133 | 158 | msgstr "" | |
| 134 | 159 | ||
| 160 | + #: ../../c-api/allocation.rst:114 | ||
| 135 | 161 | msgid "" | |
| 136 | 162 | "This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in :c:" | |
| 137 | 163 | "member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_NewVar` instead." | |
| 138 | 164 | msgstr "" | |
| 139 | 165 | ||
| 166 | + #: ../../c-api/allocation.rst:118 | ||
| 140 | 167 | msgid "" | |
| 141 | 168 | "Memory allocated by this function must be freed with :c:func:`PyObject_Free` " | |
| 142 | 169 | "(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)." | |
| 143 | 170 | msgstr "" | |
| 144 | 171 | ||
| 172 | + #: ../../c-api/allocation.rst:133 | ||
| 145 | 173 | msgid "" | |
| 146 | 174 | "PyObject *list_instance = PyObject_CallNoArgs((PyObject *)&PyList_Type);" | |
| 147 | 175 | msgstr "" | |
| 148 | 176 | ||
| 177 | + #: ../../c-api/allocation.rst:138 | ||
| 149 | 178 | msgid ":c:macro:`PyObject_GC_NewVar`" | |
| 150 | 179 | msgstr "" | |
| 151 | 180 | ||
| 152 | - msgid "Same as :c:func:`PyObject_Free`." | ||
| 153 | - msgstr "" | ||
| 154 | - | ||
| 181 | + #: ../../c-api/allocation.rst:145 | ||
| 155 | 182 | msgid "" | |
| 156 | 183 | "Object which is visible in Python as ``None``. This should only be accessed " | |
| 157 | 184 | "using the :c:macro:`Py_None` macro, which evaluates to a pointer to this " | |
| 158 | 185 | "object." | |
| 159 | 186 | msgstr "" | |
| 160 | 187 | ||
| 188 | + #: ../../c-api/allocation.rst:152 | ||
| 161 | 189 | msgid ":ref:`moduleobjects`" | |
| 162 | 190 | msgstr "" | |
| 163 | 191 | ||
| 192 | + #: ../../c-api/allocation.rst:153 | ||
| 164 | 193 | msgid "To allocate and create extension modules." | |
| 165 | 194 | msgstr "" | |
| 195 | + | ||
| 196 | + #: ../../c-api/allocation.rst:157 | ||
| 197 | + msgid "Soft-deprecated aliases" | ||
| 198 | + msgstr "" | ||
| 199 | + | ||
| 200 | + #: ../../c-api/allocation.rst:161 | ||
| 201 | + msgid "" | ||
| 202 | + "These are aliases to existing functions and macros. They exist solely for " | ||
| 203 | + "backwards compatibility." | ||
| 204 | + msgstr "" | ||
| 205 | + | ||
| 206 | + #: ../../c-api/allocation.rst:169 | ||
| 207 | + msgid "Soft-deprecated alias" | ||
| 208 | + msgstr "" | ||
| 209 | + | ||
| 210 | + #: ../../c-api/allocation.rst:170 | ||
| 211 | + msgid "Function" | ||
| 212 | + msgstr "" | ||
| 213 | + | ||
| 214 | + #: ../../c-api/allocation.rst:172 | ||
| 215 | + msgid ":c:macro:`PyObject_New`" | ||
| 216 | + msgstr "" | ||
| 217 | + | ||
| 218 | + #: ../../c-api/allocation.rst:174 | ||
| 219 | + msgid ":c:macro:`PyObject_NewVar`" | ||
| 220 | + msgstr "" | ||
| 221 | + | ||
| 222 | + #: ../../c-api/allocation.rst:176 | ||
| 223 | + msgid ":c:func:`PyObject_Init`" | ||
| 224 | + msgstr "" | ||
| 225 | + | ||
| 226 | + #: ../../c-api/allocation.rst:178 | ||
| 227 | + msgid ":c:func:`PyObject_InitVar`" | ||
| 228 | + msgstr "" | ||
| 229 | + | ||
| 230 | + #: ../../c-api/allocation.rst:180 | ||
| 231 | + msgid ":c:func:`PyObject_Malloc`" | ||
| 232 | + msgstr "" | ||
| 233 | + | ||
| 234 | + #: ../../c-api/allocation.rst:182 | ||
| 235 | + msgid ":c:func:`PyObject_Realloc`" | ||
| 236 | + msgstr "" | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments