# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: # Revisto , 2025 # Sepehr Rasouli , 2026 # msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-09-16 12:56+0000\n" "PO-Revision-Date: 2021-06-28 00:56+0000\n" "Last-Translator: Sepehr Rasouli , 2026\n" "Language-Team: Persian (https://github.com/python/python-docs-fa/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" msgid ":mod:`!codeop` --- Compile Python code" msgstr ":mod:`!codeop` --- کامپایل کد پایتون" msgid "**Source code:** :source:`Lib/codeop.py`" msgstr "**کد منبع:** :source:`Lib/codeop.py`" msgid "The :mod:`!codeop` module provides utilities upon which the Python read-eval-print loop can be emulated, as is done in the :mod:`code` module. As a result, you probably don't want to use the module directly; if you want to include such a loop in your program you probably want to use the :mod:`code` module instead." msgstr "ماژول :mod:`!codeop` ابزارهایی را فراهم می‌کند که می‌توان بر پایه‌ی آن‌ها حلقه‌ی خواندن-ارزیابی-چاپ پایتون را شبیه‌سازی کرد، همان‌طور که در ماژول :mod:`code` انجام می‌شود. در نتیجه، احتمالاً نمی‌خواهید به‌طور مستقیم از این ماژول استفاده کنید؛ اگر می‌خواهید چنین حلقه‌ای را در برنامه‌ی خود بگنجانید، احتمالاً می‌خواهید به‌جای آن از ماژول :mod:`code` استفاده کنید." msgid "There are two parts to this job:" msgstr "این کار دو بخش دارد:" msgid "Being able to tell if a line of input completes a Python statement: in short, telling whether to print '``>>>``' or '``...``' next." msgstr "توانایی تشخیص اینکه آیا یک خط ورودی یک دستور پایتون را کامل می‌کند: به‌طور خلاصه، تشخیص اینکه در ادامه '``>>>``' چاپ شود یا '``...``'." msgid "Remembering which future statements the user has entered, so subsequent input can be compiled with these in effect." msgstr "به‌خاطر سپردن اینکه کاربر کدام دستورهای آینده (future statements) را وارد کرده است، تا ورودی بعدی بتواند با اعمال آن‌ها کامپایل شود." msgid "The :mod:`!codeop` module provides a way of doing each of these things, and a way of doing them both." msgstr "ماژول :mod:`!codeop` راهی برای انجام هر یک از این کارها و راهی برای انجام هر دوی آن‌ها فراهم می‌کند." msgid "To do just the former:" msgstr "برای انجام تنها مورد اول:" msgid "Tries to compile *source*, which should be a string of Python code and return a code object if *source* is valid Python code. In that case, the filename attribute of the code object will be *filename*, which defaults to ``''``. Returns ``None`` if *source* is *not* valid Python code, but is a prefix of valid Python code." msgstr "تلاش می‌کند *source* را کامپایل کند، که باید رشته‌ای از کد پایتون باشد، و در صورتی که *source* کد معتبر پایتون باشد، یک شیء کد برمی‌گرداند. در این حالت، ویژگی filename شیء کد برابر *filename* خواهد بود، که به‌طور پیش‌فرض ``''`` است. اگر *source* کد معتبر پایتون *نباشد*، اما پیشوندی از کد معتبر پایتون باشد، ``None`` برمی‌گرداند." msgid "If there is a problem with *source*, an exception will be raised. :exc:`SyntaxError` is raised if there is invalid Python syntax, and :exc:`OverflowError` or :exc:`ValueError` if there is an invalid literal." msgstr "اگر مشکلی در *source* وجود داشته باشد، استثنایی پرتاب خواهد شد. اگر سینتکس پایتون نامعتبر باشد، :exc:`SyntaxError` پرتاب می‌شود، و در صورت وجود یک لفظی نامعتبر، :exc:`OverflowError` یا :exc:`ValueError` پرتاب می‌شود." msgid "The *symbol* argument determines whether *source* is compiled as a statement (``'single'``, the default), as a sequence of :term:`statement` (``'exec'``) or as an :term:`expression` (``'eval'``). Any other value will cause :exc:`ValueError` to be raised." msgstr "آرگومان *symbol* تعیین می‌کند که *source* به‌عنوان یک دستور (``'single'``، پیش‌فرض)، به‌عنوان دنباله‌ای از :term:`دستورها ` (``'exec'``) یا به‌عنوان یک :term:`عبارت ` (``'eval'``) کامپایل شود. هر مقدار دیگری باعث پرتاب :exc:`ValueError` خواهد شد." msgid "It is possible (but not likely) that the parser stops parsing with a successful outcome before reaching the end of the source; in this case, trailing symbols may be ignored instead of causing an error. For example, a backslash followed by two newlines may be followed by arbitrary garbage. This will be fixed once the API for the parser is better." msgstr "ممکن است (هرچند بعید است) که پارسر پیش از رسیدن به انتهای کد منبع، تجزیه را با نتیجه‌ای موفق متوقف کند؛ در این صورت، نمادهای انتهایی ممکن است به‌جای ایجاد خطا نادیده گرفته شوند. برای مثال، ممکن است پس از یک بک‌اسلش که با دو خط جدید دنبال شده است، محتوای نامعتبر دلخواهی قرار گیرد. این مورد پس از بهبود API پارسر اصلاح خواهد شد." msgid "Instances of this class have :meth:`~object.__call__` methods identical in signature to the built-in function :func:`compile`, but with the difference that if the instance compiles program text containing a :mod:`__future__` statement, the instance 'remembers' and compiles all subsequent program texts with the statement in force." msgstr "نمونه‌های این کلاس دارای متدهای :meth:`~object.__call__` هستند که از نظر امضا با تابع توکار :func:`compile` یکسان هستند، اما با این تفاوت که اگر نمونه متن برنامه‌ای حاوی دستور :mod:`__future__` را کامپایل کند، نمونه آن را «به خاطر می‌سپارد» و همه‌ی متن‌های برنامه‌ی بعدی را با فعال بودن آن دستور کامپایل می‌کند." msgid "Instances of this class have :meth:`~object.__call__` methods identical in signature to :func:`compile_command`; the difference is that if the instance compiles program text containing a :mod:`__future__` statement, the instance 'remembers' and compiles all subsequent program texts with the statement in force." msgstr "نمونه‌های این کلاس دارای متدهای :meth:`~object.__call__` هستند که از نظر امضا با :func:`compile_command` یکسان هستند؛ تفاوت این است که اگر نمونه متن برنامه‌ای را کامپایل کند که شامل یک دستور :mod:`__future__` باشد، آن نمونه آن را «به خاطر می‌سپارد» و تمام متن‌های برنامه بعدی را با برقرار بودن این دستور کامپایل می‌کند."