88msgstr ""
99"Project-Id-Version : Python 3.12\n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2025-05-10 10:19 +0300\n "
11+ "POT-Creation-Date : 2025-06-19 17:36 +0300\n "
1212"PO-Revision-Date : 2025-06-04 11:27+0300\n "
1313"Last-Translator : Marios Giannopoulos <mariosgian_2002@yahoo.gr>\n "
1414"Language-Team : PyGreece <organizers@pygreece.org>\n "
@@ -25,28 +25,48 @@ msgstr "Δέσμευση Αντικειμένων στο Σωρό"
2525msgid ""
2626"Initialize a newly allocated object *op* with its type and initial "
2727"reference. Returns the initialized object. Other fields of the object are "
28- "not affected."
28+ "not initialized. Despite its name, this function is unrelated to the "
29+ "object's :meth:`~object.__init__` method (:c:member:`~PyTypeObject.tp_init` "
30+ "slot). Specifically, this function does **not** call the object's :meth:`!"
31+ "__init__` method."
2932msgstr ""
30- "Αρχικοποιεί ένα νεοδεσμευμένο αντικείμενο *op* με τον τύπο και την αρχική "
31- "αναφορά του. Επιστρέφει το αρχικοποιημένο αντικείμενο. Άλλα πεδία του "
32- "αντικειμένου δεν επηρεάζονται."
3333
3434#: c-api/allocation.rst:24
3535msgid ""
36+ "In general, consider this function to be a low-level routine. Use :c:member:"
37+ "`~PyTypeObject.tp_alloc` where possible. For implementing :c:member:`!"
38+ "tp_alloc` for your type, prefer :c:func:`PyType_GenericAlloc` or :c:func:"
39+ "`PyObject_New`."
40+ msgstr ""
41+
42+ #: c-api/allocation.rst:31
43+ msgid ""
44+ "This function only initializes the object's memory corresponding to the "
45+ "initial :c:type:`PyObject` structure. It does not zero the rest."
46+ msgstr ""
47+
48+ #: c-api/allocation.rst:37
49+ msgid ""
3650"This does everything :c:func:`PyObject_Init` does, and also initializes the "
3751"length information for a variable-size object."
3852msgstr ""
3953"Αυτό κάνει τα πάντα που κάνει η :c:func:`PyObject_Init`, και επίσης "
4054"αρχικοποιεί τις πληροφορίες μήκους για ένα αντικείμενο μεταβλητού μεγέθους."
4155
42- #: c-api/allocation.rst:30
56+ #: c-api/allocation.rst:42
57+ msgid ""
58+ "This function only initializes some of the object's memory. It does not "
59+ "zero the rest."
60+ msgstr ""
61+
62+ #: c-api/allocation.rst:48
63+ #, fuzzy
4364msgid ""
44- "Allocate a new Python object using the C structure type *TYPE* and the "
45- "Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
46- "Python object header are not initialized. The caller will own the only "
47- "reference to the object (i.e. its reference count will be one). The size of "
48- "the memory allocation is determined from the :c:member:`~PyTypeObject."
49- "tp_basicsize` field of the type object."
65+ "Allocates a new Python object using the C structure type *TYPE* and the "
66+ "Python type object *typeobj* (``PyTypeObject*``) by calling :c:func:"
67+ "`PyObject_Malloc` to allocate memory and initializing it like :c:func:"
68+ "`PyObject_Init`. The caller will own the only reference to the object (i.e. "
69+ "its reference count will be one)."
5070msgstr ""
5171"Δεσμεύει ένα νέο αντικείμενο Python χρησιμοποιώντας τον τύπο δομής C *TYPE* "
5272"και το αντικείμενο τύπου Python *typeobj* (``PyTypeObject*``). Τα πεδία που "
@@ -55,54 +75,130 @@ msgstr ""
5575"αναφορών του θα είναι ένα). Το μέγεθος της δέσμευσης μνήμης καθορίζεται από "
5676"το πεδίο :c:member:`~PyTypeObject.tp_basicsize` του αντικειμένου τύπου."
5777
58- #: c-api/allocation.rst:38
78+ #: c-api/allocation.rst:107
79+ msgid ""
80+ "Avoid calling this directly to allocate memory for an object; call the "
81+ "type's :c:member:`~PyTypeObject.tp_alloc` slot instead."
82+ msgstr ""
83+
84+ #: c-api/allocation.rst:110
85+ msgid ""
86+ "When populating a type's :c:member:`~PyTypeObject.tp_alloc` slot, :c:func:"
87+ "`PyType_GenericAlloc` is preferred over a custom function that simply calls "
88+ "this macro."
89+ msgstr ""
90+
91+ #: c-api/allocation.rst:61
5992msgid ""
60- "Note that this function is unsuitable if *typeobj* has :c:macro:"
61- "`Py_TPFLAGS_HAVE_GC` set. For such objects, use :c:func:`PyObject_GC_New` "
62- "instead."
93+ "This macro does not call :c:member:`~PyTypeObject.tp_alloc`, :c:member:"
94+ "`~PyTypeObject.tp_new` (:meth:`~object.__new__`), or :c:member:"
95+ "`~PyTypeObject.tp_init` (:meth:`~object.__init__`)."
96+ msgstr ""
97+
98+ #: c-api/allocation.rst:65
99+ #, fuzzy
100+ msgid ""
101+ "This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in :c:"
102+ "member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_New` instead."
63103msgstr ""
64104"Σημειώστε ότι αυτή η συνάρτηση δεν είναι κατάλληλη αν το *typeobj* έχει :c:"
65105"macro:`Py_TPFLAGS_HAVE_GC` ορισμένο. Για τέτοια αντικείμενα, χρησιμοποιήστε :"
66106"c:func:`PyObject_GC_New` αντ' αυτού."
67107
68- #: c-api/allocation.rst:45
108+ #: c-api/allocation.rst:68
69109msgid ""
70- "Allocate a new Python object using the C structure type *TYPE* and the "
71- "Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
72- "Python object header are not initialized. The allocated memory allows for "
73- "the *TYPE* structure plus *size* (``Py_ssize_t``) fields of the size given "
74- "by the :c:member:`~PyTypeObject.tp_itemsize` field of *typeobj*. This is "
75- "useful for implementing objects like tuples, which are able to determine "
76- "their size at construction time. Embedding the array of fields into the "
77- "same allocation decreases the number of allocations, improving the memory "
78- "management efficiency."
110+ "Memory allocated by this macro must be freed with :c:func:`PyObject_Free` "
111+ "(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)."
112+ msgstr ""
113+
114+ #: c-api/allocation.rst:123
115+ msgid ""
116+ "The returned memory is not guaranteed to have been completely zeroed before "
117+ "it was initialized."
118+ msgstr ""
119+
120+ #: c-api/allocation.rst:128
121+ msgid ""
122+ "This macro does not construct a fully initialized object of the given type; "
123+ "it merely allocates memory and prepares it for further initialization by :c:"
124+ "member:`~PyTypeObject.tp_init`. To construct a fully initialized object, "
125+ "call *typeobj* instead. For example::"
126+ msgstr ""
127+
128+ #: c-api/allocation.rst:83
129+ msgid "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type);"
130+ msgstr ""
131+
132+ #: c-api/allocation.rst:137
133+ #, fuzzy
134+ msgid ":c:func:`PyObject_Free`"
135+ msgstr "Ίδιο με την :c:func:`PyObject_Free`."
136+
137+ #: c-api/allocation.rst:88
138+ msgid ":c:macro:`PyObject_GC_New`"
139+ msgstr ""
140+
141+ #: c-api/allocation.rst:139
142+ msgid ":c:func:`PyType_GenericAlloc`"
143+ msgstr ""
144+
145+ #: c-api/allocation.rst:140
146+ msgid ":c:member:`~PyTypeObject.tp_alloc`"
79147msgstr ""
80- "Δεσμεύει ένα νέο αντικείμενο Python χρησιμοποιώντας τον τύπο δομής C *TYPE* "
81- "και το αντικείμενο τύπου Python *typeobj* (``PyTypeObject*``). Τα πεδία που "
82- "δεν ορίζονται από την κεφαλίδα αντικειμένου Python δεν αρχικοποιούνται. Η "
83- "δεσμευμένη μνήμη επιτρέπει τη δομή *TYPE* συν *size* (``Py_ssize_t``) πεδία "
84- "του μεγέθους που δίνεται από το πεδίο :c:member:`~PyTypeObject.tp_itemsize` "
85- "του *typeobj*. Αυτό είναι χρήσιμο για την υλοποίηση αντικειμένων όπως τις "
86- "πλειάδες (tuples), τα οποία είναι σε θέση να προσδιορίσουν το μέγεθός τους "
87- "κατά τη διάρκεια της κατασκευής. Η ενσωμάτωση του πίνακα πεδίων στην ίδια "
88- "δέσμευση μειώνει τον αριθμό των δεσμεύσεων, βελτιώνοντας την αποδοτικότητα "
89- "της διαχείρισης μνήμης."
90148
91- #: c-api/allocation.rst:56
149+ #: c-api/allocation.rst:95
150+ msgid "Like :c:macro:`PyObject_New` except:"
151+ msgstr ""
152+
153+ #: c-api/allocation.rst:97
154+ msgid ""
155+ "It allocates enough memory for the *TYPE* structure plus *size* "
156+ "(``Py_ssize_t``) fields of the size given by the :c:member:`~PyTypeObject."
157+ "tp_itemsize` field of *typeobj*."
158+ msgstr ""
159+
160+ #: c-api/allocation.rst:100
161+ msgid "The memory is initialized like :c:func:`PyObject_InitVar`."
162+ msgstr ""
163+
164+ #: c-api/allocation.rst:102
92165msgid ""
93- "Note that this function is unsuitable if *typeobj* has :c:macro:"
94- "`Py_TPFLAGS_HAVE_GC` set. For such objects, use :c:func:`PyObject_GC_NewVar` "
95- "instead."
166+ "This is useful for implementing objects like tuples, which are able to "
167+ "determine their size at construction time. Embedding the array of fields "
168+ "into the same allocation decreases the number of allocations, improving the "
169+ "memory management efficiency."
170+ msgstr ""
171+
172+ #: c-api/allocation.rst:114
173+ #, fuzzy
174+ msgid ""
175+ "This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in :c:"
176+ "member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_NewVar` instead."
96177msgstr ""
97178"Σημειώστε ότι αυτή η συνάρτηση δεν είναι κατάλληλη αν το *typeobj* έχει :c:"
98179"macro:`Py_TPFLAGS_HAVE_GC` ορισμένο. Για τέτοια αντικείμενα, χρησιμοποιήστε :"
99180"c:func:`PyObject_GC_NewVar` αντ' αυτού."
100181
101- #: c-api/allocation.rst:63
182+ #: c-api/allocation.rst:118
183+ msgid ""
184+ "Memory allocated by this function must be freed with :c:func:`PyObject_Free` "
185+ "(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)."
186+ msgstr ""
187+
188+ #: c-api/allocation.rst:133
189+ msgid ""
190+ "PyObject *list_instance = PyObject_CallNoArgs((PyObject *)&PyList_Type);"
191+ msgstr ""
192+
193+ #: c-api/allocation.rst:138
194+ msgid ":c:macro:`PyObject_GC_NewVar`"
195+ msgstr ""
196+
197+ #: c-api/allocation.rst:145
102198msgid "Same as :c:func:`PyObject_Free`."
103199msgstr "Ίδιο με την :c:func:`PyObject_Free`."
104200
105- #: c-api/allocation.rst:67
201+ #: c-api/allocation.rst:149
106202msgid ""
107203"Object which is visible in Python as ``None``. This should only be accessed "
108204"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
@@ -112,10 +208,44 @@ msgstr ""
112208"προσπελαύνεται μόνο χρησιμοποιώντας τη μακροεντολή :c:macro:`Py_None`, η "
113209"οποία αξιολογείται σε έναν δείκτη σε αυτό το αντικείμενο."
114210
115- #: c-api/allocation.rst:74
116- msgid ":c:func:`PyModule_Create `"
117- msgstr ":c:func:`PyModule_Create` "
211+ #: c-api/allocation.rst:156
212+ msgid ":ref:`moduleobjects `"
213+ msgstr ""
118214
119- #: c-api/allocation.rst:75
215+ #: c-api/allocation.rst:157
120216msgid "To allocate and create extension modules."
121217msgstr "Για να δεσμεύσετε και να δημιουργήσετε επεκτάσεις modules."
218+
219+ #~ msgid ""
220+ #~ "Initialize a newly allocated object *op* with its type and initial "
221+ #~ "reference. Returns the initialized object. Other fields of the object "
222+ #~ "are not affected."
223+ #~ msgstr ""
224+ #~ "Αρχικοποιεί ένα νεοδεσμευμένο αντικείμενο *op* με τον τύπο και την αρχική "
225+ #~ "αναφορά του. Επιστρέφει το αρχικοποιημένο αντικείμενο. Άλλα πεδία του "
226+ #~ "αντικειμένου δεν επηρεάζονται."
227+
228+ #~ msgid ""
229+ #~ "Allocate a new Python object using the C structure type *TYPE* and the "
230+ #~ "Python type object *typeobj* (``PyTypeObject*``). Fields not defined by "
231+ #~ "the Python object header are not initialized. The allocated memory "
232+ #~ "allows for the *TYPE* structure plus *size* (``Py_ssize_t``) fields of "
233+ #~ "the size given by the :c:member:`~PyTypeObject.tp_itemsize` field of "
234+ #~ "*typeobj*. This is useful for implementing objects like tuples, which "
235+ #~ "are able to determine their size at construction time. Embedding the "
236+ #~ "array of fields into the same allocation decreases the number of "
237+ #~ "allocations, improving the memory management efficiency."
238+ #~ msgstr ""
239+ #~ "Δεσμεύει ένα νέο αντικείμενο Python χρησιμοποιώντας τον τύπο δομής C "
240+ #~ "*TYPE* και το αντικείμενο τύπου Python *typeobj* (``PyTypeObject*``). Τα "
241+ #~ "πεδία που δεν ορίζονται από την κεφαλίδα αντικειμένου Python δεν "
242+ #~ "αρχικοποιούνται. Η δεσμευμένη μνήμη επιτρέπει τη δομή *TYPE* συν *size* "
243+ #~ "(``Py_ssize_t``) πεδία του μεγέθους που δίνεται από το πεδίο :c:member:"
244+ #~ "`~PyTypeObject.tp_itemsize` του *typeobj*. Αυτό είναι χρήσιμο για την "
245+ #~ "υλοποίηση αντικειμένων όπως τις πλειάδες (tuples), τα οποία είναι σε θέση "
246+ #~ "να προσδιορίσουν το μέγεθός τους κατά τη διάρκεια της κατασκευής. Η "
247+ #~ "ενσωμάτωση του πίνακα πεδίων στην ίδια δέσμευση μειώνει τον αριθμό των "
248+ #~ "δεσμεύσεων, βελτιώνοντας την αποδοτικότητα της διαχείρισης μνήμης."
249+
250+ #~ msgid ":c:func:`PyModule_Create`"
251+ #~ msgstr ":c:func:`PyModule_Create`"
0 commit comments