1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2022, Python Software Foundation
1
+ # Copyright (C) 2001-2023, Python Software Foundation
3
2
# This file is distributed under the same license as the Python package.
4
3
#
5
4
# Translators:
5
+ # Liang-Bo Wang <[email protected] >, 2016
6
+ # Matt Wang <[email protected] >, 2023
6
7
msgid ""
7
8
msgstr ""
8
9
"Project-Id-Version : Python 3.12\n "
9
10
"Report-Msgid-Bugs-To : \n "
10
11
"POT-Creation-Date : 2023-05-09 00:15+0000\n "
11
- "PO-Revision-Date : 2016-11-19 00:29+0000\n "
12
- "
Last-Translator :
Liang-Bo Wang <[email protected] >\n"
12
+ "PO-Revision-Date : 2023-12-29 00:29+0000\n "
13
+ "
Last-Translator :
Matt Wang <[email protected] >\n"
13
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
15
"tw)\n "
15
16
"Language : zh_TW\n "
@@ -20,7 +21,7 @@ msgstr ""
20
21
21
22
#: ../../library/copyreg.rst:2
22
23
msgid ":mod:`copyreg` --- Register :mod:`pickle` support functions"
23
- msgstr ""
24
+ msgstr ":mod:`copyreg` --- 註冊 :mod:`pickle` 支援函式 "
24
25
25
26
#: ../../library/copyreg.rst:7
26
27
msgid "**Source code:** :source:`Lib/copyreg.py`"
@@ -34,12 +35,18 @@ msgid ""
34
35
"configuration information about object constructors which are not classes. "
35
36
"Such constructors may be factory functions or class instances."
36
37
msgstr ""
38
+ ":mod:`copyreg` 模組提供了一種用以定義在 pickle 特定物件時使用之函式的方式。:"
39
+ "mod:`pickle` 和 :mod:`copy` 模組在 pickle/copy 這些物件時使用這些函式。此模組"
40
+ "提供有關非類別物件之建構函式的配置資訊。此類建構函式可以是工廠函式 (factory "
41
+ "function) 或類別實例。"
37
42
38
43
#: ../../library/copyreg.rst:24
39
44
msgid ""
40
45
"Declares *object* to be a valid constructor. If *object* is not callable "
41
46
"(and hence not valid as a constructor), raises :exc:`TypeError`."
42
47
msgstr ""
48
+ "宣告 *object* 是一個有效的建構函式。如果 *object* 不可呼叫(因此不可作為有效"
49
+ "的建構函式),則會引發 :exc:`TypeError`。"
43
50
44
51
#: ../../library/copyreg.rst:30
45
52
msgid ""
@@ -48,19 +55,26 @@ msgid ""
48
55
"containing between two and six elements. See the :attr:`~pickle.Pickler."
49
56
"dispatch_table` for more details on the interface of *function*."
50
57
msgstr ""
58
+ "宣告 *function* 應該用作 *type* 型別之物件的「歸約 (\" reduction\" )」函式。"
59
+ "*function* 必須回傳字串或包含 2 到 6 個元素的元組。有關 *function* 介面的更多"
60
+ "詳細資訊,請參閱 :attr:`~pickle.Pickler.dispatch_table`。"
51
61
52
62
#: ../../library/copyreg.rst:35
53
63
msgid ""
54
64
"The *constructor_ob* parameter is a legacy feature and is now ignored, but "
55
65
"if passed it must be a callable."
56
66
msgstr ""
67
+ "*constructor_ob* 參數是一個遺留功能,現在已被忽略,但如果要傳遞它的話則必須是"
68
+ "個可呼叫物件。"
57
69
58
70
#: ../../library/copyreg.rst:38
59
71
msgid ""
60
72
"Note that the :attr:`~pickle.Pickler.dispatch_table` attribute of a pickler "
61
73
"object or subclass of :class:`pickle.Pickler` can also be used for declaring "
62
74
"reduction functions."
63
75
msgstr ""
76
+ "請注意,pickler 物件或 :class:`pickle.Pickler` 子類別的 :attr:`~pickle."
77
+ "Pickler.dispatch_table` 屬性也可用於宣告歸約函式。"
64
78
65
79
#: ../../library/copyreg.rst:43
66
80
msgid "Example"
@@ -70,7 +84,7 @@ msgstr "範例"
70
84
msgid ""
71
85
"The example below would like to show how to register a pickle function and "
72
86
"how it will be used:"
73
- msgstr ""
87
+ msgstr "下面範例展示如何註冊一個 pickle 函式以及如何使用它: "
74
88
75
89
#: ../../library/copyreg.rst:9
76
90
msgid "module"
0 commit comments