Repository navigation
Expand file tree
/
Copy pathcopyreg.po
More file actions
60 lines (48 loc) · 4.37 KB
/
Copy pathcopyreg.po
File metadata and controls
60 lines (48 loc) · 4.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025
# Danial Behzadi <dani.behzi@ubuntu.com>, 2025
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
# Sepehr Rasouli <sepehrrasouli06@gmail.com>, 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 01:03+0000\n"
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
"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"
msgid ":mod:`!copyreg` --- Register :mod:`!pickle` support functions"
msgstr ":mod:`!copyreg` --- ثبت توابع پشتیبانی :mod:`!pickle`"
msgid "**Source code:** :source:`Lib/copyreg.py`"
msgstr "**کد منبع:** :source:`Lib/copyreg.py`"
msgid "The :mod:`!copyreg` module offers a way to define functions used while pickling specific objects. The :mod:`pickle` and :mod:`copy` modules use those functions when pickling/copying those objects. The module provides configuration information about object constructors which are not classes. Such constructors may be factory functions or class instances."
msgstr "ماژول :mod:`!copyreg` روشی برای تعریف توابعی ارائه میکند که هنگام پیکل کردن اشیاء خاص استفاده میشوند. ماژولهای :mod:`pickle` و :mod:`copy` هنگام پیکل کردن/کپی کردن آن اشیاء از این توابع استفاده میکنند. این ماژول اطلاعات پیکربندی دربارهی سازندههای شیء که کلاس نیستند را فراهم میکند. چنین سازندههایی ممکن است توابع کارخانهای یا نمونههای کلاس باشند."
msgid "Declares *object* to be a valid constructor. If *object* is not callable (and hence not valid as a constructor), raises :exc:`TypeError`."
msgstr "*object* را بهعنوان یک سازنده معتبر اعلام میکند. اگر *object* قابل فراخوانی نباشد (و در نتیجه بهعنوان یک سازنده معتبر نباشد)، :exc:`TypeError` را پرتاب میکند."
msgid "Declares that *function* should be used as a \"reduction\" function for objects of type *type*. *function* must return either a string or a tuple containing between two and six elements. See the :attr:`~pickle.Pickler.dispatch_table` for more details on the interface of *function*."
msgstr "اعلام میکند که *function* باید بهعنوان تابع «کاهش» (reduction) برای اشیایی از نوع *type* استفاده شود. *function* باید یا یک رشته برگرداند یا یک تاپل شامل دو تا شش المان. برای جزئیات بیشتر در مورد رابط *function*، :attr:`~pickle.Pickler.dispatch_table` را ببینید."
msgid "The *constructor_ob* parameter is a legacy feature and is now ignored, but if passed it must be a callable."
msgstr "پارامتر *constructor_ob* یک قابلیت قدیمی است و اکنون نادیده گرفته میشود، اما اگر ارسال شود باید فراخوانیپذیر باشد."
msgid "Note that the :attr:`~pickle.Pickler.dispatch_table` attribute of a pickler object or subclass of :class:`pickle.Pickler` can also be used for declaring reduction functions."
msgstr "توجه داشته باشید که میتوان از ویژگی :attr:`~pickle.Pickler.dispatch_table` یک شیء پیکلساز (pickler) یا زیرکلاسی از :class:`pickle.Pickler` نیز برای اعلام توابع کاهش استفاده کرد."
msgid "Example"
msgstr "مثال"
msgid "The example below would like to show how to register a pickle function and how it will be used:"
msgstr "مثال زیر نشان میدهد که چگونه میتوان یک تابع pickle را ثبت کرد و چگونه از آن استفاده خواهد شد:"
msgid "module"
msgstr "ماژول"
msgid "pickle"
msgstr "pickle"
msgid "copy"
msgstr "copy"