Expand Up @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-05-10 10:19 +0300\n" "POT-Creation-Date: 2025-06-19 17:36 +0300\n" "PO-Revision-Date: 2025-06-04 11:27+0300\n" "Last-Translator: Marios Giannopoulos <mariosgian_2002@yahoo.gr>\n" "Language-Team: PyGreece <organizers@pygreece.org>\n" Expand All @@ -25,28 +25,48 @@ msgstr "Δέσμευση Αντικειμένων στο Σωρό" msgid "" "Initialize a newly allocated object *op* with its type and initial " "reference. Returns the initialized object. Other fields of the object are " "not affected." "not initialized. Despite its name, this function is unrelated to the " "object's :meth:`~object.__init__` method (:c:member:`~PyTypeObject.tp_init` " "slot). Specifically, this function does **not** call the object's :meth:`!" "__init__` method." msgstr "" "Αρχικοποιεί ένα νεοδεσμευμένο αντικείμενο *op* με τον τύπο και την αρχική " "αναφορά του. Επιστρέφει το αρχικοποιημένο αντικείμενο. Άλλα πεδία του " "αντικειμένου δεν επηρεάζονται." #: c-api/allocation.rst:24 msgid "" "In general, consider this function to be a low-level routine. Use :c:member:" "`~PyTypeObject.tp_alloc` where possible. For implementing :c:member:`!" "tp_alloc` for your type, prefer :c:func:`PyType_GenericAlloc` or :c:func:" "`PyObject_New`." msgstr "" #: c-api/allocation.rst:31 msgid "" "This function only initializes the object's memory corresponding to the " "initial :c:type:`PyObject` structure. It does not zero the rest." msgstr "" #: c-api/allocation.rst:37 msgid "" "This does everything :c:func:`PyObject_Init` does, and also initializes the " "length information for a variable-size object." msgstr "" "Αυτό κάνει τα πάντα που κάνει η :c:func:`PyObject_Init`, και επίσης " "αρχικοποιεί τις πληροφορίες μήκους για ένα αντικείμενο μεταβλητού μεγέθους." #: c-api/allocation.rst:30 #: c-api/allocation.rst:42 msgid "" "This function only initializes some of the object's memory. It does not " "zero the rest." msgstr "" #: c-api/allocation.rst:48 #, fuzzy msgid "" "Allocate a new Python object using the C structure type *TYPE* and the " "Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the " "Python object header are not initialized. The caller will own the only " "reference to the object (i.e. its reference count will be one). The size of " "the memory allocation is determined from the :c:member:`~PyTypeObject." "tp_basicsize` field of the type object." "Allocates a new Python object using the C structure type *TYPE* and the " "Python type object *typeobj* (``PyTypeObject*``) by calling :c:func:" "`PyObject_Malloc` to allocate memory and initializing it like :c:func:" "`PyObject_Init`. The caller will own the only reference to the object (i.e. " "its reference count will be one)." msgstr "" "Δεσμεύει ένα νέο αντικείμενο Python χρησιμοποιώντας τον τύπο δομής C *TYPE* " "και το αντικείμενο τύπου Python *typeobj* (``PyTypeObject*``). Τα πεδία που " Expand All @@ -55,54 +75,130 @@ msgstr "" "αναφορών του θα είναι ένα). Το μέγεθος της δέσμευσης μνήμης καθορίζεται από " "το πεδίο :c:member:`~PyTypeObject.tp_basicsize` του αντικειμένου τύπου." #: c-api/allocation.rst:38 #: c-api/allocation.rst:107 msgid "" "Avoid calling this directly to allocate memory for an object; call the " "type's :c:member:`~PyTypeObject.tp_alloc` slot instead." msgstr "" #: c-api/allocation.rst:110 msgid "" "When populating a type's :c:member:`~PyTypeObject.tp_alloc` slot, :c:func:" "`PyType_GenericAlloc` is preferred over a custom function that simply calls " "this macro." msgstr "" #: c-api/allocation.rst:61 msgid "" "Note that this function is unsuitable if *typeobj* has :c:macro:" "`Py_TPFLAGS_HAVE_GC` set. For such objects, use :c:func:`PyObject_GC_New` " "instead." "This macro does not call :c:member:`~PyTypeObject.tp_alloc`, :c:member:" "`~PyTypeObject.tp_new` (:meth:`~object.__new__`), or :c:member:" "`~PyTypeObject.tp_init` (:meth:`~object.__init__`)." msgstr "" #: c-api/allocation.rst:65 #, fuzzy msgid "" "This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in :c:" "member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_New` instead." msgstr "" "Σημειώστε ότι αυτή η συνάρτηση δεν είναι κατάλληλη αν το *typeobj* έχει :c:" "macro:`Py_TPFLAGS_HAVE_GC` ορισμένο. Για τέτοια αντικείμενα, χρησιμοποιήστε :" "c:func:`PyObject_GC_New` αντ' αυτού." #: c-api/allocation.rst:45 #: c-api/allocation.rst:68 msgid "" "Allocate a new Python object using the C structure type *TYPE* and the " "Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the " "Python object header are not initialized. The allocated memory allows for " "the *TYPE* structure plus *size* (``Py_ssize_t``) fields of the size given " "by the :c:member:`~PyTypeObject.tp_itemsize` field of *typeobj*. This is " "useful for implementing objects like tuples, which are able to determine " "their size at construction time. Embedding the array of fields into the " "same allocation decreases the number of allocations, improving the memory " "management efficiency." "Memory allocated by this macro must be freed with :c:func:`PyObject_Free` " "(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)." msgstr "" #: c-api/allocation.rst:123 msgid "" "The returned memory is not guaranteed to have been completely zeroed before " "it was initialized." msgstr "" #: c-api/allocation.rst:128 msgid "" "This macro does not construct a fully initialized object of the given type; " "it merely allocates memory and prepares it for further initialization by :c:" "member:`~PyTypeObject.tp_init`. To construct a fully initialized object, " "call *typeobj* instead. For example::" msgstr "" #: c-api/allocation.rst:83 msgid "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type);" msgstr "" #: c-api/allocation.rst:137 #, fuzzy msgid ":c:func:`PyObject_Free`" msgstr "Ίδιο με την :c:func:`PyObject_Free`." #: c-api/allocation.rst:88 msgid ":c:macro:`PyObject_GC_New`" msgstr "" #: c-api/allocation.rst:139 msgid ":c:func:`PyType_GenericAlloc`" msgstr "" #: c-api/allocation.rst:140 msgid ":c:member:`~PyTypeObject.tp_alloc`" msgstr "" "Δεσμεύει ένα νέο αντικείμενο Python χρησιμοποιώντας τον τύπο δομής C *TYPE* " "και το αντικείμενο τύπου Python *typeobj* (``PyTypeObject*``). Τα πεδία που " "δεν ορίζονται από την κεφαλίδα αντικειμένου Python δεν αρχικοποιούνται. Η " "δεσμευμένη μνήμη επιτρέπει τη δομή *TYPE* συν *size* (``Py_ssize_t``) πεδία " "του μεγέθους που δίνεται από το πεδίο :c:member:`~PyTypeObject.tp_itemsize` " "του *typeobj*. Αυτό είναι χρήσιμο για την υλοποίηση αντικειμένων όπως τις " "πλειάδες (tuples), τα οποία είναι σε θέση να προσδιορίσουν το μέγεθός τους " "κατά τη διάρκεια της κατασκευής. Η ενσωμάτωση του πίνακα πεδίων στην ίδια " "δέσμευση μειώνει τον αριθμό των δεσμεύσεων, βελτιώνοντας την αποδοτικότητα " "της διαχείρισης μνήμης." #: c-api/allocation.rst:56 #: c-api/allocation.rst:95 msgid "Like :c:macro:`PyObject_New` except:" msgstr "" #: c-api/allocation.rst:97 msgid "" "It allocates enough memory for the *TYPE* structure plus *size* " "(``Py_ssize_t``) fields of the size given by the :c:member:`~PyTypeObject." "tp_itemsize` field of *typeobj*." msgstr "" #: c-api/allocation.rst:100 msgid "The memory is initialized like :c:func:`PyObject_InitVar`." msgstr "" #: c-api/allocation.rst:102 msgid "" "Note that this function is unsuitable if *typeobj* has :c:macro:" "`Py_TPFLAGS_HAVE_GC` set. For such objects, use :c:func:`PyObject_GC_NewVar` " "instead." "This is useful for implementing objects like tuples, which are able to " "determine their size at construction time. Embedding the array of fields " "into the same allocation decreases the number of allocations, improving the " "memory management efficiency." msgstr "" #: c-api/allocation.rst:114 #, fuzzy msgid "" "This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in :c:" "member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_NewVar` instead." msgstr "" "Σημειώστε ότι αυτή η συνάρτηση δεν είναι κατάλληλη αν το *typeobj* έχει :c:" "macro:`Py_TPFLAGS_HAVE_GC` ορισμένο. Για τέτοια αντικείμενα, χρησιμοποιήστε :" "c:func:`PyObject_GC_NewVar` αντ' αυτού." #: c-api/allocation.rst:63 #: c-api/allocation.rst:118 msgid "" "Memory allocated by this function must be freed with :c:func:`PyObject_Free` " "(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)." msgstr "" #: c-api/allocation.rst:133 msgid "" "PyObject *list_instance = PyObject_CallNoArgs((PyObject *)&PyList_Type);" msgstr "" #: c-api/allocation.rst:138 msgid ":c:macro:`PyObject_GC_NewVar`" msgstr "" #: c-api/allocation.rst:145 msgid "Same as :c:func:`PyObject_Free`." msgstr "Ίδιο με την :c:func:`PyObject_Free`." #: c-api/allocation.rst:67 #: c-api/allocation.rst:149 msgid "" "Object which is visible in Python as ``None``. This should only be accessed " "using the :c:macro:`Py_None` macro, which evaluates to a pointer to this " Expand All @@ -112,10 +208,44 @@ msgstr "" "προσπελαύνεται μόνο χρησιμοποιώντας τη μακροεντολή :c:macro:`Py_None`, η " "οποία αξιολογείται σε έναν δείκτη σε αυτό το αντικείμενο." #: c-api/allocation.rst:74 msgid ":c:func:`PyModule_Create `" msgstr ":c:func:`PyModule_Create` " #: c-api/allocation.rst:156 msgid ":ref:`moduleobjects `" msgstr "" #: c-api/allocation.rst:75 #: c-api/allocation.rst:157 msgid "To allocate and create extension modules." msgstr "Για να δεσμεύσετε και να δημιουργήσετε επεκτάσεις modules." #~ msgid "" #~ "Initialize a newly allocated object *op* with its type and initial " #~ "reference. Returns the initialized object. Other fields of the object " #~ "are not affected." #~ msgstr "" #~ "Αρχικοποιεί ένα νεοδεσμευμένο αντικείμενο *op* με τον τύπο και την αρχική " #~ "αναφορά του. Επιστρέφει το αρχικοποιημένο αντικείμενο. Άλλα πεδία του " #~ "αντικειμένου δεν επηρεάζονται." #~ msgid "" #~ "Allocate a new Python object using the C structure type *TYPE* and the " #~ "Python type object *typeobj* (``PyTypeObject*``). Fields not defined by " #~ "the Python object header are not initialized. The allocated memory " #~ "allows for the *TYPE* structure plus *size* (``Py_ssize_t``) fields of " #~ "the size given by the :c:member:`~PyTypeObject.tp_itemsize` field of " #~ "*typeobj*. This is useful for implementing objects like tuples, which " #~ "are able to determine their size at construction time. Embedding the " #~ "array of fields into the same allocation decreases the number of " #~ "allocations, improving the memory management efficiency." #~ msgstr "" #~ "Δεσμεύει ένα νέο αντικείμενο Python χρησιμοποιώντας τον τύπο δομής C " #~ "*TYPE* και το αντικείμενο τύπου Python *typeobj* (``PyTypeObject*``). Τα " #~ "πεδία που δεν ορίζονται από την κεφαλίδα αντικειμένου Python δεν " #~ "αρχικοποιούνται. Η δεσμευμένη μνήμη επιτρέπει τη δομή *TYPE* συν *size* " #~ "(``Py_ssize_t``) πεδία του μεγέθους που δίνεται από το πεδίο :c:member:" #~ "`~PyTypeObject.tp_itemsize` του *typeobj*. Αυτό είναι χρήσιμο για την " #~ "υλοποίηση αντικειμένων όπως τις πλειάδες (tuples), τα οποία είναι σε θέση " #~ "να προσδιορίσουν το μέγεθός τους κατά τη διάρκεια της κατασκευής. Η " #~ "ενσωμάτωση του πίνακα πεδίων στην ίδια δέσμευση μειώνει τον αριθμό των " #~ "δεσμεύσεων, βελτιώνοντας την αποδοτικότητα της διαχείρισης μνήμης." #~ msgid ":c:func:`PyModule_Create`" #~ msgstr ":c:func:`PyModule_Create`"