You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a7e7dc4
Browse filesBrowse the repository at this point in the historyBrowse files
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -112,6 +112,9 @@ msgstr "پاک کردن پایشگر (watcher) شناساییشده با *wat
112
112
msgid"Enumeration of possible code object watcher events: - ``PY_CODE_EVENT_CREATE`` - ``PY_CODE_EVENT_DESTROY``"
113
113
msgstr"شمارش رویدادهای ممکن دیدهبان شیء کد: - ``PY_CODE_EVENT_CREATE`` - ``PY_CODE_EVENT_DESTROY``"
114
114
115
+
msgid"Apply the macro *V* to each suffix of :c:type:`PyCodeEvent` constants. Currently expands to ``V(CREATE) V(DESTROY)``. The macro *V* must accept one event name and supply any punctuation needed between expansions."
116
+
msgstr""
117
+
115
118
msgid"Type of a code object watcher callback function."
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -61,20 +61,22 @@ msgstr "توصیفگرهای متد، توابع C را بهصورت مت
61
61
msgid"The type object for method descriptor objects created from :c:type:`PyMethodDef` structures. These descriptors expose C functions as methods on a type, and correspond to :class:`types.MethodDescriptorType` objects in Python."
62
62
msgstr"شیء نوع برای اشیاء توصیفگر متد که از ساختارهای :c:type:`PyMethodDef` ایجاد شدهاند. این توصیفگرها توابع C را بهعنوان متدهایی روی یک نوع در دسترس قرار میدهند و معادل اشیاء :class:`types.MethodDescriptorType` در پایتون هستند."
63
63
64
-
msgid"Describes a slot wrapper used by :c:func:`PyDescr_NewWrapper`."
65
-
msgstr"یک دربرگیرندهی جایگاه را توصیف میکند که توسط :c:func:`PyDescr_NewWrapper` استفاده میشود."
64
+
msgid"The type object for wrapper descriptor objects created by :c:func:`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`."
65
+
msgstr""
66
66
67
-
msgid"Each ``wrapperbase`` record stores the Python-visible name and metadata for a special method implemented by a type slot, together with the wrapper function used to adapt that slot to Python's calling convention."
68
-
msgstr"هر رکورد ``wrapperbase`` نام قابلمشاهده در پایتون و فرادادهی متد ویژهای را که توسط یک جایگاه نوع پیادهسازی شده است، به همراه تابع پوششیای که برای تطبیق آن جایگاه با قرارداد فراخوانی پایتون استفاده میشود، ذخیره میکند."
67
+
#,fuzzy
68
+
#| msgid "Wrapper descriptors expose special methods implemented by type slots. This is the same kind of descriptor that CPython creates for slot-based special methods such as ``__repr__`` or ``__add__``, and it appears in Python as a :class:`types.WrapperDescriptorType` object."
69
+
msgid"Wrapper descriptors are used internally to expose special methods such as ``__repr__`` or ``__add__``, which are implemented by type slots. The type is exposed in Python as :class:`types.WrapperDescriptorType`."
70
+
msgstr"توصیفگرهای پوششی، متدهای ویژهای را که توسط جایگاههای نوع پیادهسازی شدهاند، در دسترس قرار میدهند. این همان نوع توصیفگری است که سیپایتون برای متدهای ویژهی مبتنی بر جایگاه مانند ``__repr__`` یا ``__add__`` ایجاد میکند و در پایتون بهصورت یک شیء :class:`types.WrapperDescriptorType` ظاهر میشود."
69
71
70
-
msgid"Create a new wrapper descriptor for extension type *type* from the :c:struct:`wrapperbase` structure *base* and the wrapped slot function pointer *wrapped*."
71
-
msgstr"یک توصیفگر پوششی جدید برای نوع توسعهای *type* از ساختار :c:struct:`wrapperbase` به نام *base* و اشارهگر تابع جایگاه دربرگرفتهشده به نام *wrapped* میسازد."
72
+
msgid"Create a new wrapper descriptor of type :c:var:`PyWrapperDescr_Type`."
73
+
msgstr""
72
74
73
-
msgid"Wrapper descriptors expose special methods implemented by type slots. This is the same kind of descriptor that CPython creates for slot-based special methods such as ``__repr__`` or ``__add__``, and it appears in Python as a :class:`types.WrapperDescriptorType` object."
74
-
msgstr"توصیفگرهای پوششی، متدهای ویژهای را که توسط جایگاههای نوع پیادهسازی شدهاند، در دسترس قرار میدهند. این همان نوع توصیفگری است که سیپایتون برای متدهای ویژهی مبتنی بر جایگاه مانند ``__repr__`` یا ``__add__`` ایجاد میکند و در پایتون بهصورت یک شیء :class:`types.WrapperDescriptorType` ظاهر میشود."
75
+
msgid"This function is meant for internal use only; it and related API (``struct wrapperbase`` and the ``PyWrapperFlag_KEYWORDS`` flag) are exposed publicly for backwards compatibility reasons."
76
+
msgstr""
75
77
76
-
msgid"The type object for wrapper descriptor objects created by :c:func:`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`. Wrapper descriptors are used internally to expose special methods implemented via wrapper structures, and appear in Python as :class:`types.WrapperDescriptorType` objects."
77
-
msgstr"شیء نوع برای اشیاء توصیفگر پوششی که توسط :c:func:`PyDescr_NewWrapper` و :c:func:`PyWrapper_New` ایجاد میشوند. توصیفگرهای پوششی بهطور داخلی برای در دسترس قرار دادن متدهای ویژهای که از طریق ساختارهای پوششی پیادهسازی شدهاند استفاده میشوند و در پایتون بهصورت اشیاء :class:`types.WrapperDescriptorType` ظاهر میشوند."
78
+
msgid"See :c:func:`PyCMethod_New` for wrapping a C function."
79
+
msgstr""
78
80
79
81
msgid"Create a new class method descriptor for extension type *type* from the :c:type:`PyMethodDef` structure *method*."
80
82
msgstr"یک توصیفگر متد کلاس جدید برای نوع توسعهای *type* از ساختار :c:type:`PyMethodDef` به نام *method* ایجاد میکند."
@@ -94,6 +96,18 @@ msgstr "این، شکل مقیدِ یک توصیفگر پوششی (wrapper de
94
96
msgid"On success, return a :term:`strong reference` to the wrapper object. Return ``NULL`` with an exception set on failure."
95
97
msgstr"در صورت موفقیت، یک :term:`ارجاع قوی <strong reference>` به شیء پوششی برمیگرداند. در صورت شکل، ``NULL`` را همراه با یک استثنای تنظیمشده برمیگرداند."
96
98
99
+
msgid"Return a :term:`borrowed reference` to the type that the descriptor *descr* belongs to. This is accessible as :attr:`~object.__objclass__` in Python."
100
+
msgstr""
101
+
102
+
msgid"*descr* must be a descriptor object created by one of the ``PyDescr_New*`` functions (an instance of :c:var:`PyMethodDescr_Type`, :c:var:`PyClassMethodDescr_Type`, :c:var:`PyMemberDescr_Type`, :c:var:`PyGetSetDescr_Type`, or :c:var:`PyWrapperDescr_Type`). If the passed descriptor is not an instance of one of these types, the behavior is undefined."
103
+
msgstr""
104
+
105
+
msgid"Return the name of the descriptor *descr* as a :term:`borrowed reference` to a :class:`str` object. This is available as :attr:`~definition.__name__` in Python."
106
+
msgstr""
107
+
108
+
msgid"*descr* must be a descriptor object created by one of the ``PyDescr_New*`` functions. If not, the behavior is undefined."
109
+
msgstr""
110
+
97
111
msgid"Built-in descriptors"
98
112
msgstr"توصیفگرهای توکار"
99
113
@@ -120,3 +134,15 @@ msgstr "یک شیء :class:`staticmethod` جدید ایجاد میکند که
120
134
121
135
msgid"On success, this function returns a :term:`strong reference` to a new static method descriptor. On failure, this function returns ``NULL`` with an exception set."
122
136
msgstr"در صورت موفقیت، این تابع یک :term:`ارجاع قوی <strong reference>` به توصیفگر جدید متد ایستا برمیگرداند. در صورت شکست، این تابع ``NULL`` را همراه با یک استثنای تنظیمشده برمیگرداند."
137
+
138
+
#~ msgid "Describes a slot wrapper used by :c:func:`PyDescr_NewWrapper`."
139
+
#~ msgstr "یک دربرگیرندهی جایگاه را توصیف میکند که توسط :c:func:`PyDescr_NewWrapper` استفاده میشود."
140
+
141
+
#~ msgid "Each ``wrapperbase`` record stores the Python-visible name and metadata for a special method implemented by a type slot, together with the wrapper function used to adapt that slot to Python's calling convention."
142
+
#~ msgstr "هر رکورد ``wrapperbase`` نام قابلمشاهده در پایتون و فرادادهی متد ویژهای را که توسط یک جایگاه نوع پیادهسازی شده است، به همراه تابع پوششیای که برای تطبیق آن جایگاه با قرارداد فراخوانی پایتون استفاده میشود، ذخیره میکند."
143
+
144
+
#~ msgid "Create a new wrapper descriptor for extension type *type* from the :c:struct:`wrapperbase` structure *base* and the wrapped slot function pointer *wrapped*."
145
+
#~ msgstr "یک توصیفگر پوششی جدید برای نوع توسعهای *type* از ساختار :c:struct:`wrapperbase` به نام *base* و اشارهگر تابع جایگاه دربرگرفتهشده به نام *wrapped* میسازد."
146
+
147
+
#~ msgid "The type object for wrapper descriptor objects created by :c:func:`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`. Wrapper descriptors are used internally to expose special methods implemented via wrapper structures, and appear in Python as :class:`types.WrapperDescriptorType` objects."
148
+
#~ msgstr "شیء نوع برای اشیاء توصیفگر پوششی که توسط :c:func:`PyDescr_NewWrapper` و :c:func:`PyWrapper_New` ایجاد میشوند. توصیفگرهای پوششی بهطور داخلی برای در دسترس قرار دادن متدهای ویژهای که از طریق ساختارهای پوششی پیادهسازی شدهاند استفاده میشوند و در پایتون بهصورت اشیاء :class:`types.WrapperDescriptorType` ظاهر میشوند."
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -288,6 +288,9 @@ msgstr "دیکشنری *dict* را بهعنوان دیگر دیدهبان
288
288
msgid"Enumeration of possible dictionary watcher events: ``PyDict_EVENT_ADDED``, ``PyDict_EVENT_MODIFIED``, ``PyDict_EVENT_DELETED``, ``PyDict_EVENT_CLONED``, ``PyDict_EVENT_CLEARED``, or ``PyDict_EVENT_DEALLOCATED``."
289
289
msgstr"برشمردن رویدادهای ممکن دیدهبان دیکشنری: ``PyDict_EVENT_ADDED``، ``PyDict_EVENT_MODIFIED``، ``PyDict_EVENT_DELETED``، ``PyDict_EVENT_CLONED``، ``PyDict_EVENT_CLEARED`` یا ``PyDict_EVENT_DEALLOCATED``."
290
290
291
+
msgid"Apply the macro *V* to each suffix of :c:type:`PyDict_WatchEvent` constants. Currently expands to ``V(ADDED) V(MODIFIED) V(DELETED) V(CLONED) V(CLEARED) V(DEALLOCATED)``. The macro *V* must accept one event name and supply any punctuation needed between expansions."
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -201,6 +201,9 @@ msgstr "دستههای هشدار باید زیرکلاسهایی از :c:
201
201
msgid"For information about warning control, see the documentation for the :mod:`warnings` module and the :option:`-W` option in the command line documentation. There is no C API for warning control."
202
202
msgstr"برای کسب اطلاعات دربارهی کنترل هشدارها، به مستندات ماژول :mod:`warnings` و گزینهی :option:`-W` در مستندات خط فرمان مراجعه کنید. برای کنترل هشدارها API زبان C وجود ندارد."
203
203
204
+
msgid"Equivalent to :c:expr:`PyErr_WarnEx(category, message, 1)`."
205
+
msgstr""
206
+
204
207
msgid"Issue a warning message with explicit control over all warning attributes. This is a straightforward wrapper around the Python function :func:`warnings.warn_explicit`; see there for more information. The *module* and *registry* arguments may be set to ``NULL`` to get the default effect described there."
205
208
msgstr"یک پیام هشدار با کنترل صریح بر تمام ویژگیهای هشدار صادر میکند. این پوششی ساده در اطراف تابع پایتونی :func:`warnings.warn_explicit` است؛ برای اطلاعات بیشتر به آنجا مراجعه کنید. آرگومانهای *module* و *registry* میتوانند روی ``NULL`` تنظیم شوند تا اثر پیشفرضِ توصیفشده در آنجا به دست آید."
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -42,6 +42,18 @@ msgstr "توصیفگر پرونده مرتبط با *p* را بهصورت
42
42
msgid"Equivalent to ``p.readline([n])``, this function reads one line from the object *p*. *p* may be a file object or any object with a :meth:`~io.IOBase.readline` method. If *n* is ``0``, exactly one line is read, regardless of the length of the line. If *n* is greater than ``0``, no more than *n* bytes will be read from the file; a partial line can be returned. In both cases, an empty string is returned if the end of the file is reached immediately. If *n* is less than ``0``, however, one line is read regardless of length, but :exc:`EOFError` is raised if the end of the file is reached immediately."
43
43
msgstr"این تابع معادل ``p.readline([n])`` است و یک سطر از شیء *p* میخواند. *p* میتواند یک شیء پرونده یا هر شیء دارای متد :meth:`~io.IOBase.readline` باشد. اگر *n* برابر ``0`` باشد، دقیقاً یک سطر خوانده میشود، بدون توجه به طول سطر. اگر *n* بزرگتر از ``0`` باشد، بیش از *n* بایت از پرونده خوانده نمیشود؛ ممکن است سطر ناقصی برگردانده شود. در هر دو حالت، اگر بلافاصله به پایان پرونده برسیم، رشتهای خالی برگردانده میشود. اما اگر *n* کوچکتر از ``0`` باشد، یک سطر بدون توجه به طول خوانده میشود، ولی اگر بلافاصله به پایان پرونده برسیم، :exc:`EOFError` پرتاب میشود."
44
44
45
+
msgid"Read a line from the C stream *stream* into the buffer *buf*, like the C standard library function :c:func:`!fgets`, but treating all of ``\\n``, ``\\r`` and ``\\r\\n`` as line endings (see :term:`universal newlines`). Any ``\\r`` or ``\\r\\n`` read from the stream is stored in *buf* as a single ``\\n``."
46
+
msgstr""
47
+
48
+
msgid"At most ``n - 1`` characters are stored in *buf*; reading stops after a newline has been stored or when the end of the file is reached. The result is always null-terminated. *stream* should be opened in binary mode, so that the C library does not perform its own newline translation."
49
+
msgstr""
50
+
51
+
msgid"Return *buf* on success. Return ``NULL`` if no characters could be read, because *stream* is at end of file, a read error occurred, or *n* is less than 2. Like :c:func:`!fgets`, this function does not distinguish between end of file and a read error, and it does not set an exception."
52
+
msgstr""
53
+
54
+
msgid"*fobj* exists only for backward compatibility and must be ``NULL``."
55
+
msgstr""
56
+
45
57
msgid"Overrides the normal behavior of :func:`io.open_code` to pass its parameter through the provided handler."
46
58
msgstr"رفتار عادی :func:`io.open_code` را بازتعریف میکند تا پارامتر خود را از هندلر ارائهشده عبور دهد."
47
59
@@ -102,6 +114,9 @@ msgstr "به جای آن، از :c:func:`PyFile_FromFd` با مقادیر پیش
102
114
msgid"Type of file-like objects used internally at Python startup when :py:mod:`io` is not yet available. Use Python :py:func:`open` or :c:func:`PyFile_FromFd` to create file objects instead."
103
115
msgstr"نوع اشیای شبهپروندهای که در زمان راهاندازی پایتون، هنگامی که :py:mod:`io` هنوز در دسترس نیست، بهطور داخلی استفاده میشوند. بهجای آن، برای ایجاد اشیای پرونده از :py:func:`open` پایتون یا :c:func:`PyFile_FromFd` استفاده کنید."
104
116
117
+
msgid"The string literal ``\"b\"``, used to open files in binary mode. Exposed for backwards compatibility only."
0 commit comments