| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3d65817 commit 4fc71f0
49 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -113,7 +113,7 @@ msgid "Enumeration of possible code object watcher events: - ``PY_CODE_EVENT_CRE | |||
| 113 | 113 | msgstr "شمارش رویدادهای ممکن دیدهبان شیء کد: - ``PY_CODE_EVENT_CREATE`` - ``PY_CODE_EVENT_DESTROY``" | |
| 114 | 114 | ||
| 115 | 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 "" | ||
| 116 | + msgstr "ماکرو *V* را روی هر پسوند از ثابتهای :c:type:`PyCodeEvent` اعمال کنید. در حال حاضر به صورت ``V(CREATE) V(DESTROY)`` گسترش مییابد. ماکرو *V* باید یک نام رویداد را بپذیرد و هرگونه علائم نگارشی مورد نیاز بین گسترشها را فراهم کند." | ||
| 117 | 117 | ||
| 118 | 118 | msgid "Type of a code object watcher callback function." | |
| 119 | 119 | msgstr "نوع تابع کالبک دیدهبان شیء کد." | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -188,10 +188,10 @@ msgid "Return the uppercase equivalent of the character *c*." | |||
| 188 | 188 | msgstr "معادل بزرگنویسی نویسهی *c* را برمیگرداند." | |
| 189 | 189 | ||
| 190 | 190 | msgid "Bit masks" | |
| 191 | - msgstr "" | ||
| 191 | + msgstr "بیتماسکها" | ||
| 192 | 192 | ||
| 193 | 193 | msgid "The following constants are bit masks used by the character classification macros above:" | |
| 194 | - msgstr "" | ||
| 194 | + msgstr "ثابتهای زیر بیتماسکهایی هستند که توسط ماکروهای دستهبندی نویسه در بالا استفاده میشوند:" | ||
| 195 | 195 | ||
| 196 | 196 | msgid "Values used internally by the ``Py_IS*`` classification macros above. Exposed for backwards compatibility only." | |
| 197 | - msgstr "" | ||
| 197 | + msgstr "مقادیر استفادهشدهی داخلی توسط ماکروهای دستهبندی ``Py_IS*`` در بالا. فقط برای سازگاری با نسخههای قبلی در معرض دید قرار گرفتهاند." | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,21 +60,19 @@ msgid "The type object for method descriptor objects created from :c:type:`PyMet | |||
| 60 | 60 | msgstr "شیء نوع برای اشیاء توصیفگر متد که از ساختارهای :c:type:`PyMethodDef` ایجاد شدهاند. این توصیفگرها توابع C را بهعنوان متدهایی روی یک نوع در دسترس قرار میدهند و معادل اشیاء :class:`types.MethodDescriptorType` در پایتون هستند." | |
| 61 | 61 | ||
| 62 | 62 | msgid "The type object for wrapper descriptor objects created by :c:func:`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`." | |
| 63 | - msgstr "" | ||
| 63 | + msgstr "شیء نوع داده برای اشیای توصیفگر پوششی ایجادشده توسط :c:func:`PyDescr_NewWrapper` و :c:func:`PyWrapper_New`." | ||
| 64 | 64 | ||
| 65 | - #, fuzzy | ||
| 66 | - #| 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." | ||
| 67 | 65 | 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`." | |
| 68 | - msgstr "توصیفگرهای پوششی، متدهای ویژهای را که توسط جایگاههای نوع پیادهسازی شدهاند، در دسترس قرار میدهند. این همان نوع توصیفگری است که سیپایتون برای متدهای ویژهی مبتنی بر جایگاه مانند ``__repr__`` یا ``__add__`` ایجاد میکند و در پایتون بهصورت یک شیء :class:`types.WrapperDescriptorType` ظاهر میشود." | ||
| 66 | + msgstr "توصیفگرهای پوششی به صورت داخلی برای نمایش متدهای ویژهای مانند ``__repr__`` یا ``__add__`` استفاده میشوند که توسط جایگاههای نوع پیادهسازی شدهاند. این نوع در پایتون به صورت :class:`types.WrapperDescriptorType` نمایش داده میشود." | ||
| 69 | 67 | ||
| 70 | 68 | msgid "Create a new wrapper descriptor of type :c:var:`PyWrapperDescr_Type`." | |
| 71 | - msgstr "" | ||
| 69 | + msgstr "یک توصیفگر پوششی جدید از نوع :c:var:`PyWrapperDescr_Type` ایجاد کنید." | ||
| 72 | 70 | ||
| 73 | 71 | 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." | |
| 74 | - msgstr "" | ||
| 72 | + msgstr "این تابع فقط برای استفادهی داخلی در نظر گرفته شده است؛ آن و APIهای مرتبط (``struct wrapperbase`` و پرچم ``PyWrapperFlag_KEYWORDS``) به دلایل سازگاری با نسخههای پیشین به صورت عمومی ارائه شدهاند." | ||
| 75 | 73 | ||
| 76 | 74 | msgid "See :c:func:`PyCMethod_New` for wrapping a C function." | |
| 77 | - msgstr "" | ||
| 75 | + msgstr "برای بستهبندی یک تابع C به :c:func:`PyCMethod_New` مراجعه کنید." | ||
| 78 | 76 | ||
| 79 | 77 | msgid "Create a new class method descriptor for extension type *type* from the :c:type:`PyMethodDef` structure *method*." | |
| 80 | 78 | msgstr "یک توصیفگر متد کلاس جدید برای نوع توسعهای *type* از ساختار :c:type:`PyMethodDef` به نام *method* ایجاد میکند." | |
@@ -95,16 +93,16 @@ msgid "On success, return a :term:`strong reference` to the wrapper object. Retu | |||
| 95 | 93 | msgstr "در صورت موفقیت، یک :term:`ارجاع قوی <strong reference>` به شیء پوششی برمیگرداند. در صورت شکل، ``NULL`` را همراه با یک استثنای تنظیمشده برمیگرداند." | |
| 96 | 94 | ||
| 97 | 95 | msgid "Return a :term:`borrowed reference` to the type that the descriptor *descr* belongs to. This is accessible as :attr:`~object.__objclass__` in Python." | |
| 98 | - msgstr "" | ||
| 96 | + msgstr "یک :term:`ارجاع امانتی <borrowed reference>` به نوعی که توصیفگر *descr* به آن تعلق دارد، برگردانید. این مقدار در پایتون به عنوان :attr:`~object.__objclass__` قابل دسترسی است." | ||
| 99 | 97 | ||
| 100 | 98 | 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." | |
| 101 | - msgstr "" | ||
| 99 | + msgstr "*descr* باید یک شیء توصیفگر باشد که توسط یکی از توابع ``PyDescr_New*`` ایجاد شده است (یک نمونه از :c:var:`PyMethodDescr_Type`، :c:var:`PyClassMethodDescr_Type`، :c:var:`PyMemberDescr_Type`، :c:var:`PyGetSetDescr_Type` یا :c:var:`PyWrapperDescr_Type`). اگر توصیفگر ارسالشده نمونهای از یکی از این نوعها نباشد، رفتار نامشخص خواهد بود." | ||
| 102 | 100 | ||
| 103 | 101 | 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." | |
| 104 | - msgstr "" | ||
| 102 | + msgstr "نام توصیفگر *descr* را به عنوان یک :term:`ارجاع امانتی <borrowed reference>` به یک شیء :class:`str` برگردانید. این مقدار در پایتون به عنوان :attr:`~definition.__name__` در دسترس است." | ||
| 105 | 103 | ||
| 106 | 104 | msgid "*descr* must be a descriptor object created by one of the ``PyDescr_New*`` functions. If not, the behavior is undefined." | |
| 107 | - msgstr "" | ||
| 105 | + msgstr "*descr* باید یک شیء توصیفگر باشد که توسط یکی از توابع ``PyDescr_New*`` ایجاد شده است. در غیر این صورت، رفتار نامشخص خواهد بود." | ||
| 108 | 106 | ||
| 109 | 107 | msgid "This is a macro including the common fields for a descriptor object." | |
| 110 | 108 | msgstr "این یک کلاندستور است که شامل فیلدهای مشترک برای یک شیء توصیفگر است." | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -308,7 +308,7 @@ msgid "Enumeration of possible dictionary watcher events: ``PyDict_EVENT_ADDED`` | |||
| 308 | 308 | msgstr "برشمردن رویدادهای ممکن دیدهبان دیکشنری: ``PyDict_EVENT_ADDED``، ``PyDict_EVENT_MODIFIED``، ``PyDict_EVENT_DELETED``، ``PyDict_EVENT_CLONED``، ``PyDict_EVENT_CLEARED`` یا ``PyDict_EVENT_DEALLOCATED``." | |
| 309 | 309 | ||
| 310 | 310 | 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." | |
| 311 | - msgstr "" | ||
| 311 | + msgstr "ماکرو *V* را روی هر پسوند از ثابتهای :c:type:`PyDict_WatchEvent` اعمال کنید. در حال حاضر به صورت ``V(ADDED) V(MODIFIED) V(DELETED) V(CLONED) V(CLEARED) V(DEALLOCATED)`` گسترش مییابد. ماکرو *V* باید یک نام رویداد را بپذیرد و هرگونه علائم نگارشی مورد نیاز بین گسترشها را فراهم کند." | ||
| 312 | 312 | ||
| 313 | 313 | msgid "Type of a dict watcher callback function." | |
| 314 | 314 | msgstr "نوع تابع کالبک ناظر دیکشنری." | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -203,7 +203,7 @@ msgid "For information about warning control, see the documentation for the :mod | |||
| 203 | 203 | msgstr "برای کسب اطلاعات دربارهی کنترل هشدارها، به مستندات ماژول :mod:`warnings` و گزینهی :option:`-W` در مستندات خط فرمان مراجعه کنید. برای کنترل هشدارها API زبان C وجود ندارد." | |
| 204 | 204 | ||
| 205 | 205 | msgid "Equivalent to :c:expr:`PyErr_WarnEx(category, message, 1)`." | |
| 206 | - msgstr "" | ||
| 206 | + msgstr "معادل :c:expr:`PyErr_WarnEx(category, message, 1)`." | ||
| 207 | 207 | ||
| 208 | 208 | 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." | |
| 209 | 209 | msgstr "یک پیام هشدار با کنترل صریح بر تمام ویژگیهای هشدار صادر میکند. این پوششی ساده در اطراف تابع پایتونی :func:`warnings.warn_explicit` است؛ برای اطلاعات بیشتر به آنجا مراجعه کنید. آرگومانهای *module* و *registry* میتوانند روی ``NULL`` تنظیم شوند تا اثر پیشفرضِ توصیفشده در آنجا به دست آید." | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -298,31 +298,23 @@ msgstr "در مقداردهی اولیهی تکمرحلهای، :ref:` | |||
| 298 | 298 | msgid "Single-phase initialization differs from the :ref:`default <multi-phase-initialization>` in the following ways:" | |
| 299 | 299 | msgstr "مقداردهی اولیه تکفازی در موارد زیر با :ref:`پیشفرض <multi-phase-initialization>` تفاوت دارد:" | |
| 300 | 300 | ||
| 301 | - #, fuzzy | ||
| 302 | - #| msgid "Single-phase modules are, or rather *contain*, “singletons”." | ||
| 303 | 301 | msgid "Single-phase modules with :c:member:`PyModuleDef.m_size` set to -1 are, or rather *contain*, “singletons”." | |
| 304 | - msgstr "ماژولهای تکفاز (single-phase) «تکنمونه» هستند، یا به بیان دقیقتر، *حاوی* «تکنمونه» هستند." | ||
| 302 | + msgstr "ماژولهای تکفازی که :c:member:`PyModuleDef.m_size` آنها روی 1- تنظیم شده است، «تکنمونه» هستند یا بهتر است بگوییم آنها را «در بر دارند»." | ||
| 305 | 303 | ||
| 306 | - #, fuzzy | ||
| 307 | - #| msgid "When the module is first initialized, Python saves the contents of the module's ``__dict__`` (that is, typically, the module's functions and types)." | ||
| 308 | 304 | msgid "When such a module is first initialized, Python saves the contents of the module's ``__dict__`` (that is, typically, the module's functions and types)." | |
| 309 | - msgstr "هنگامی که ماژول برای نخستین بار مقداردهی اولیه میشود، پایتون محتویات ``__dict__`` ماژول را ذخیره میکند (یعنی، بهطور معمول، توابع و نوعهای ماژول)." | ||
| 305 | + msgstr "هنگامی که چنین ماژولی برای اولین بار مقداردهی اولیه میشود، پایتون محتویات ``__dict__`` ماژول (یعنی معمولاً توابع و انواع ماژول) را ذخیره میکند." | ||
| 310 | 306 | ||
| 311 | - #, fuzzy | ||
| 312 | - #| msgid "For subsequent imports, Python does not call the initialization function again. Instead, it creates a new module object with a new ``__dict__``, and copies the saved contents to it. For example, given a single-phase module ``_testsinglephase`` [#testsinglephase]_ that defines a function ``sum`` and an exception class ``error``:" | ||
| 313 | 307 | msgid "For subsequent imports, Python does not call the initialization function again. Instead, it creates a new module object with a new ``__dict__``, and copies the saved contents to it. Modules are matched to the saved contents by a (*module_name*, *file_name*) tuple where:" | |
| 314 | - msgstr "برای ایمپورتهای بعدی، پایتون تابع مقداردهی اولیه را دوباره فراخوانی نمیکند. در عوض، شیء ماژول جدیدی با ``__dict__`` جدید میسازد و محتویات ذخیرهشده را در آن کپی میکند. برای مثال، با فرض یک ماژول تکفاز ``_testsinglephase`` [#testsinglephase]_ که تابعی به نام ``sum`` و کلاس استثنایی به نام ``error`` را تعریف میکند:" | ||
| 308 | + msgstr "برای ایمپورتهای بعدی، پایتون دوباره تابع مقداردهی اولیه را فراخوانی نمیکند. در عوض، یک شیء ماژول جدید با یک ``__dict__`` جدید ایجاد میکند و محتویات ذخیرهشده را در آن کپی میکند. ماژولها با استفاده از یک تاپل (*module_name*, *file_name*) با محتویات ذخیرهشده مطابقت داده میشوند که در آن:" | ||
| 315 | 309 | ||
| 316 | 310 | msgid "*module_name* is the module's full dotted name, taken from :py:attr:`ModuleSpec.name <importlib.machinery.ModuleSpec.name>` (or the equivalent argument of the importing function). Note that names that the initialization function uses to create the module (for example, :c:member:`PyModuleDef.m_name`) are not taken into account." | |
| 317 | - msgstr "" | ||
| 311 | + msgstr "*module_name* نام نقطهگذاریشدهی کامل ماژول است که از :py:attr:`ModuleSpec.name <importlib.machinery.ModuleSpec.name>` (یا آرگومان معادل تابع ایمپورتکننده) گرفته شده است. توجه داشته باشید که نامهایی که تابع مقداردهی اولیه برای ایجاد ماژول استفاده میکند (به عنوان مثال :c:member:`PyModuleDef.m_name`) در نظر گرفته نمیشوند." | ||
| 318 | 312 | ||
| 319 | 313 | msgid "*file_name* is the extension's file name. It is unset for modules not loaded from a file, such as built-ins and modules added with :c:func:`PyImport_CreateModuleFromInitfunc` or :c:func:`PyImport_AppendInittab`." | |
| 320 | - msgstr "" | ||
| 314 | + msgstr "*file_name* نام پروندهی افزونه است. این مقدار برای ماژولهایی که از یک پرونده بارگذاری نمیشوند، مانند موارد توکار و ماژولهایی که با :c:func:`PyImport_CreateModuleFromInitfunc` یا :c:func:`PyImport_AppendInittab` اضافه شدهاند، تنظیم نمیشود." | ||
| 321 | 315 | ||
| 322 | - #, fuzzy | ||
| 323 | - #| msgid "For subsequent imports, Python does not call the initialization function again. Instead, it creates a new module object with a new ``__dict__``, and copies the saved contents to it. For example, given a single-phase module ``_testsinglephase`` [#testsinglephase]_ that defines a function ``sum`` and an exception class ``error``:" | ||
| 324 | 316 | msgid "As part of the first initialization, Python also adds the module to :data:`sys.modules` under its name. For example, given a single-phase module ``_testsinglephase`` [#testsinglephase]_ that defines a function ``sum`` and an exception class ``error``:" | |
| 325 | - msgstr "برای ایمپورتهای بعدی، پایتون تابع مقداردهی اولیه را دوباره فراخوانی نمیکند. در عوض، شیء ماژول جدیدی با ``__dict__`` جدید میسازد و محتویات ذخیرهشده را در آن کپی میکند. برای مثال، با فرض یک ماژول تکفاز ``_testsinglephase`` [#testsinglephase]_ که تابعی به نام ``sum`` و کلاس استثنایی به نام ``error`` را تعریف میکند:" | ||
| 317 | + msgstr "به عنوان بخشی از مقداردهی اولیهی اول، پایتون همچنین ماژول را با نام خودش به :data:`sys.modules` اضافه میکند. برای مثال، با فرض یک ماژول تکفازی ``_testsinglephase`` [#testsinglephase]_ که یک تابع ``sum`` و یک کلاس استثنای ``error`` را تعریف میکند:" | ||
| 326 | 318 | ||
| 327 | 319 | msgid "" | |
| 328 | 320 | ">>> import sys\n" | |
@@ -355,15 +347,13 @@ msgid "The exact behavior should be considered a CPython implementation detail." | |||
| 355 | 347 | msgstr "رفتار دقیق باید بهعنوان جزئیات پیادهسازی سیپایتون در نظر گرفته شود." | |
| 356 | 348 | ||
| 357 | 349 | msgid "For single-phase modules with non-negative :c:member:`PyModuleDef.m_size`, Python may cache a pointer to the initialization function under the (*module_name*, *file_name*) key as for ``m_size == -1``." | |
| 358 | - msgstr "" | ||
| 350 | + msgstr "برای ماژولهای تکفازی با :c:member:`PyModuleDef.m_size` نامنفی، پایتون ممکن است یک اشارهگر به تابع مقداردهی اولیه را تحت کلید (*module_name*, *file_name*) درست مانند حالتی که ``m_size == -1`` است، نهانگاه کند." | ||
| 359 | 351 | ||
| 360 | 352 | msgid "Subsequent imports that specify a different initialization function (for example, using :c:func:`PyImport_CreateModuleFromInitfunc`) may call either the cached function or the provided \"new\" one." | |
| 361 | - msgstr "" | ||
| 353 | + msgstr "ایمپورتهای بعدی که تابع مقداردهی اولیهی متفاوتی را مشخص میکنند (برای مثال با استفاده از :c:func:`PyImport_CreateModuleFromInitfunc`) ممکن است یا تابع نهانگاهشده یا تابع «جدید» فراهمشده را فراخوانی کنند." | ||
| 362 | 354 | ||
| 363 | - #, fuzzy | ||
| 364 | - #| msgid "The exact behavior should be considered a CPython implementation detail." | ||
| 365 | 355 | msgid "The exact behavior should again be considered a CPython implementation detail." | |
| 366 | - msgstr "رفتار دقیق باید بهعنوان جزئیات پیادهسازی سیپایتون در نظر گرفته شود." | ||
| 356 | + msgstr "رفتار دقیق را باید بار دیگر از جزئیات پیادهسازی سیپایتون دانست." | ||
| 367 | 357 | ||
| 368 | 358 | msgid "To work around the fact that ``PyInit_modulename`` does not take a *spec* argument, some state of the import machinery is saved and applied to the first suitable module created during the ``PyInit_modulename`` call. Specifically, when a sub-module is imported, this mechanism prepends the parent package name to the name of the module." | |
| 369 | 359 | msgstr "برای دور زدن این واقعیت که ``PyInit_modulename`` آرگومان *مشخصات* نمیپذیرد، بخشی از وضعیت سازوکار ایمپورت ذخیره میشود و بر نخستین ماژول مناسب ایجادشده در طول فراخوانی ``PyInit_modulename`` اعمال میشود. بهطور خاص، هنگامی که یک زیرماژول ایمپورت میشود، این سازوکار نام بسته والد را به ابتدای نام ماژول میافزاید." | |
| Back | FazBrowse Home | New Git URL |
0 commit comments