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 c669285
Browse filesBrowse the repository at this point in the historyBrowse files
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -354,20 +354,35 @@ msgstr "توکن ماژول"
354
354
msgid"Each module may have an associated *token*: a pointer-sized value intended to identify of the module state's memory layout. This means that if you have a module object, but you are not sure if it “belongs” to your extension, you can check using code like this:"
355
355
msgstr"هر ماژول ممکن است یک *توکن* (token) مرتبط داشته باشد: مقداری به اندازهی اشارهگر که برای شناسایی چیدمان حافظهی وضعیت ماژول در نظر گرفته شده است. این یعنی اگر شیء ماژولی دارید، اما مطمئن نیستید که آیا به افزونهی شما «تعلق» دارد یا خیر، میتوانید با استفاده از کدی شبیه به این آن را بررسی کنید:"
356
356
357
+
#,fuzzy
358
+
#| msgid ""
359
+
#| "PyObject *module = <the module in question>\n"
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -123,7 +123,9 @@ msgstr ""
123
123
msgid"``#define PY_SSIZE_T_CLEAN`` was used to indicate that ``Py_ssize_t`` should be used in some APIs instead of ``int``. It is not necessary since Python 3.13, but we keep it here for backward compatibility. See :ref:`arg-parsing-string-and-buffers` for a description of this macro."
124
124
msgstr"``#define PY_SSIZE_T_CLEAN`` برای نشان دادن این نکته استفاده میشد که در برخی APIها باید بهجای ``int`` از ``Py_ssize_t`` استفاده شود. از پایتون 3.13 به بعد دیگر لازم نیست، اما برای سازگاری با نسخههای پیشین، آن را اینجا نگه میداریم. برای شرح این ماکرو به :ref:`arg-parsing-string-and-buffers` مراجعه کنید."
125
125
126
-
msgid"Setting :c:member:`PyConfig.program_name` should be called before :c:func:`Py_InitializeFromConfig` to inform the interpreter about paths to Python run-time libraries. Next, the Python interpreter is initialized with :c:func:`Py_Initialize`, followed by the execution of a hard-coded Python script that prints the date and time. Afterwards, the :c:func:`Py_FinalizeEx` call shuts the interpreter down, followed by the end of the program. In a real program, you may want to get the Python script from another source, perhaps a text-editor routine, a file, or a database. Getting the Python code from a file can better be done by using the :c:func:`PyRun_SimpleFile` function, which saves you the trouble of allocating memory space and loading the file contents."
126
+
#,fuzzy
127
+
#| msgid "Setting :c:member:`PyConfig.program_name` should be called before :c:func:`Py_InitializeFromConfig` to inform the interpreter about paths to Python run-time libraries. Next, the Python interpreter is initialized with :c:func:`Py_Initialize`, followed by the execution of a hard-coded Python script that prints the date and time. Afterwards, the :c:func:`Py_FinalizeEx` call shuts the interpreter down, followed by the end of the program. In a real program, you may want to get the Python script from another source, perhaps a text-editor routine, a file, or a database. Getting the Python code from a file can better be done by using the :c:func:`PyRun_SimpleFile` function, which saves you the trouble of allocating memory space and loading the file contents."
128
+
msgid"Setting :c:member:`PyConfig.program_name` should be called before :c:func:`Py_InitializeFromConfig` to inform the interpreter about paths to Python run-time libraries. Next, the Python interpreter is initialized with :c:func:`Py_InitializeFromConfig`, followed by the execution of a hard-coded Python script that prints the date and time. Afterwards, the :c:func:`Py_FinalizeEx` call shuts the interpreter down, followed by the end of the program. In a real program, you may want to get the Python script from another source, perhaps a text-editor routine, a file, or a database. Getting the Python code from a file can better be done by using the :c:func:`PyRun_SimpleFile` function, which saves you the trouble of allocating memory space and loading the file contents."
127
129
msgstr "تنظیم :c:member:`PyConfig.program_name` باید پیش از :c:func:`Py_InitializeFromConfig` انجام شود تا مفسر را از مسیرهای کتابخانههای زمان اجرای پایتون آگاه کند. سپس، مفسر پایتون با :c:func:`Py_Initialize` مقداردهی اولیه میشود و در ادامه، یک اسکریپت پایتونِ هاردکدشده (hard-coded) که تاریخ و زمان را چاپ میکند، اجرا میشود. پس از آن، فراخوانی :c:func:`Py_FinalizeEx` مفسر را متوقف میکند و در نهایت برنامه به پایان میرسد. در یک برنامهی واقعی، ممکن است بخواهید اسکریپت پایتون را از منبع دیگری دریافت کنید؛ مثلاً از یک روتین ویرایشگر متن، یک پرونده یا یک پایگاه داده. گرفتن کد پایتون از یک پرونده را بهتر میتوان با استفاده از تابع :c:func:`PyRun_SimpleFile` انجام داد که شما را از دردسر تخصیص فضای حافظه و بارگذاری محتوای پرونده بینیاز میکند."
128
130
129
131
msgid"Beyond Very High Level Embedding: An overview"
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
@@ -1035,7 +1035,9 @@ msgstr ""
1035
1035
" return 0;\n"
1036
1036
"}"
1037
1037
1038
-
msgid"Note that ``PySpam_API`` is declared ``static``; otherwise the pointer array would disappear when :c:func:`!PyInit_spam` terminates!"
1038
+
#,fuzzy
1039
+
#| msgid "Note that ``PySpam_API`` is declared ``static``; otherwise the pointer array would disappear when :c:func:`!PyInit_spam` terminates!"
1040
+
msgid"Note that ``PySpam_API`` is declared ``static``; otherwise the pointer array would disappear when :c:func:`!spam_module_exec` terminates!"
1039
1041
msgstr"توجه داشته باشید که ``PySpam_API`` بهصورت ``static`` تعریف شده است؛ در غیر این صورت، آرایه اشارهگرها با خاتمهیافتن :c:func:`!PyInit_spam` ناپدید میشد!"
1040
1042
1041
1043
msgid"The bulk of the work is in the header file :file:`spammodule.h`, which looks like this::"
msgid"The following script uses the tapset above to provide a top-like view of all running CPython code, showing the top 20 most frequently entered bytecode frames, each second, across the whole system:"
620
640
msgstr"اسکریپت زیر از tapset بالا برای ارائه نمایی مشابه top از تمام کدهای CPython در حال اجرا استفاده میکند و هر ثانیه، ۲۰ فریم بایتکد با بیشترین تعداد ورود در سراسر سیستم را نشان میدهد:"
0 commit comments