"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.6\n"
msgid"Type Object Structures"
msgstr"ساختارهای شیء نوع"
msgid"Perhaps one of the most important structures of the Python object system is the structure that defines a new type: the :c:type:`PyTypeObject` structure. Type objects can be handled using any of the ``PyObject_*`` or ``PyType_*`` functions, but do not offer much that's interesting to most Python applications. These objects are fundamental to how objects behave, so they are very important to the interpreter itself and to any extension module that implements new types."
msgstr"شاید یکی از مهمترین ساختارهای سیستم شیء پایتون، ساختاری باشد که یک نوع جدید را تعریف میکند: ساختار :c:type:`PyTypeObject`. اشیاء نوع را میتوان با استفاده از هر یک از توابع ``PyObject_*`` یا ``PyType_*`` مدیریت کرد، اما چیز جالب زیادی برای بیشتر برنامههای پایتون ارائه نمیدهند. این اشیاء مبنای نحوه رفتار اشیاء هستند، بنابراین برای خود مفسر و برای هر ماژول توسعهای که نوعهای جدیدی را پیادهسازی میکند بسیار مهم هستند."
msgid"Type objects are fairly large compared to most of the standard types. The reason for the size is that each type object stores a large number of values, mostly C function pointers, each of which implements a small part of the type's functionality. The fields of the type object are examined in detail in this section. The fields will be described in the order in which they occur in the structure."
msgstr"اشیاء نوع در مقایسه با اکثر نوعهای استاندارد نسبتاً بزرگ هستند. دلیل این اندازه آن است که هر شیء نوع تعداد زیادی مقدار را ذخیره میکند که عمدتاً اشارهگرهای تابع C هستند و هر یک بخش کوچکی از کارکرد نوع را پیادهسازی میکند. فیلدهای شیء نوع در این بخش به تفصیل بررسی میشوند. فیلدها به ترتیبی که در ساختار قرار دارند توصیف خواهند شد."
msgid"In addition to the following quick reference, the :ref:`typedef-examples` section provides at-a-glance insight into the meaning and use of :c:type:`PyTypeObject`."
msgstr"علاوه بر مرجع سریع زیر، بخش :ref:`typedef-examples` درکی سریع و فوری از معنا و کاربرد :c:type:`PyTypeObject` فراهم میکند."
msgid"See :ref:`slot-typedefs` below for more detail."
msgstr"برای جزئیات بیشتر، :ref:`slot-typedefs` را در ادامه ببینید."
msgid"PyTypeObject Definition"
msgstr"تعریف PyTypeObject"
msgid"The structure definition for :c:type:`PyTypeObject` can be found in :file:`Include/cpython/object.h`. For convenience of reference, this repeats the definition found there:"
msgstr"تعریف ساختار :c:type:`PyTypeObject` را میتوان در :file:`Include/cpython/object.h` یافت. برای سهولت مراجعه، این بخش تعریف موجود در آنجا را تکرار میکند:"
msgid""
"typedef struct _typeobject {\n"
" PyObject_VAR_HEAD\n"
" const char *tp_name; /* For printing, in format \"<module>.<name>\" */\n"
" Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */\n"
"\n"
" /* Methods to implement standard operations */\n"
"\n"
" destructor tp_dealloc;\n"
" Py_ssize_t tp_vectorcall_offset;\n"
" getattrfunc tp_getattr;\n"
" setattrfunc tp_setattr;\n"
" PyAsyncMethods *tp_as_async; /* formerly known as tp_compare (Python 2)\n"
" or tp_reserved (Python 3) */\n"
" reprfunc tp_repr;\n"
"\n"
" /* Method suites for standard classes */\n"
"\n"
" PyNumberMethods *tp_as_number;\n"
" PySequenceMethods *tp_as_sequence;\n"
" PyMappingMethods *tp_as_mapping;\n"
"\n"
" /* More standard operations (here for binary compatibility) */\n"
"\n"
" hashfunc tp_hash;\n"
" ternaryfunc tp_call;\n"
" reprfunc tp_str;\n"
" getattrofunc tp_getattro;\n"
" setattrofunc tp_setattro;\n"
"\n"
" /* Functions to access object as input/output buffer */\n"
" PyBufferProcs *tp_as_buffer;\n"
"\n"
" /* Flags to define presence of optional/expanded features */\n"