Skip to content

Commit 17711ca

Browse files
sync with cpython c737fb31
1 parent 42600ef commit 17711ca

10 files changed

Lines changed: 675 additions & 628 deletions

File tree

deprecations/index.po

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.14\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2026-02-18 00:20+0000\n"
8+
"POT-Creation-Date: 2026-06-12 00:46+0000\n"
99
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1111
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -95,39 +95,22 @@ msgid "``load_module()`` method: use ``exec_module()`` instead."
9595
msgstr "``load_module()`` method:請改用 ``exec_module()``。"
9696

9797
#: ../../deprecations/pending-removal-in-3.15.rst:36
98-
msgid ":class:`locale`:"
99-
msgstr ":class:`locale`:"
100-
101-
#: ../../deprecations/pending-removal-in-3.15.rst:38
102-
msgid ""
103-
"The :func:`~locale.getdefaultlocale` function has been deprecated since "
104-
"Python 3.11. Its removal was originally planned for Python 3.13 (:gh:"
105-
"`90817`), but has been postponed to Python 3.15. Use :func:`~locale."
106-
"getlocale`, :func:`~locale.setlocale`, and :func:`~locale.getencoding` "
107-
"instead. (Contributed by Hugo van Kemenade in :gh:`111187`.)"
108-
msgstr ""
109-
":func:`~locale.getdefaultlocale` 已在 Python 3.11 中被棄用,原本計劃在 "
110-
"Python 3.13 中移除 (:gh:`90817`),但被延後至 Python 3.15。請改用 :func:"
111-
"`~locale.getlocale`、:func:`~locale.setlocale` 和 :func:`~locale."
112-
"getencoding`。 (由 Hugo van Kemenade 於 :gh:`111187` 貢獻。)"
113-
114-
#: ../../deprecations/pending-removal-in-3.15.rst:46
11598
msgid ":mod:`pathlib`:"
11699
msgstr ":mod:`pathlib`:"
117100

118-
#: ../../deprecations/pending-removal-in-3.15.rst:48
101+
#: ../../deprecations/pending-removal-in-3.15.rst:38
119102
msgid ""
120103
":meth:`.PurePath.is_reserved` has been deprecated since Python 3.13. Use :"
121104
"func:`os.path.isreserved` to detect reserved paths on Windows."
122105
msgstr ""
123106
":meth:`.PurePath.is_reserved` 已自 Python 3.13 被棄用。請用 :func:`os.path."
124107
"isreserved` 來偵測 Windows 上的保留路徑。"
125108

126-
#: ../../deprecations/pending-removal-in-3.15.rst:52
109+
#: ../../deprecations/pending-removal-in-3.15.rst:42
127110
msgid ":mod:`platform`:"
128111
msgstr ":mod:`platform`:"
129112

130-
#: ../../deprecations/pending-removal-in-3.15.rst:54
113+
#: ../../deprecations/pending-removal-in-3.15.rst:44
131114
msgid ""
132115
":func:`~platform.java_ver` has been deprecated since Python 3.13. This "
133116
"function is only useful for Jython support, has a confusing API, and is "
@@ -136,24 +119,24 @@ msgstr ""
136119
"自 Python 3.13 起,:func:`~platform.java_ver` 已被棄用。此函式僅對 Jython 支"
137120
"援有用,具有令人困惑的 API,基本上未經測試。"
138121

139-
#: ../../deprecations/pending-removal-in-3.15.rst:58
122+
#: ../../deprecations/pending-removal-in-3.15.rst:48
140123
#: ../../deprecations/pending-removal-in-3.16.rst:96
141124
msgid ":mod:`sysconfig`:"
142125
msgstr ":mod:`sysconfig`:"
143126

144-
#: ../../deprecations/pending-removal-in-3.15.rst:60
127+
#: ../../deprecations/pending-removal-in-3.15.rst:50
145128
msgid ""
146129
"The *check_home* argument of :func:`sysconfig.is_python_build` has been "
147130
"deprecated since Python 3.12."
148131
msgstr ""
149132
":func:`sysconfig.is_python_build` 的 *check_home* 引數自 Python 3.12 起已被棄"
150133
"用。"
151134

152-
#: ../../deprecations/pending-removal-in-3.15.rst:63
135+
#: ../../deprecations/pending-removal-in-3.15.rst:53
153136
msgid ":mod:`threading`:"
154137
msgstr ":mod:`threading`:"
155138

156-
#: ../../deprecations/pending-removal-in-3.15.rst:65
139+
#: ../../deprecations/pending-removal-in-3.15.rst:55
157140
msgid ""
158141
":func:`~threading.RLock` will take no arguments in Python 3.15. Passing any "
159142
"arguments has been deprecated since Python 3.14, as the Python version does "
@@ -164,11 +147,11 @@ msgstr ""
164147
"起,傳遞任何引數的用法已被棄用,因為 Python 版本不允許任何引數,但 C 版本允許"
165148
"任意數量的位置或關鍵字引數,並忽略每個引數。"
166149

167-
#: ../../deprecations/pending-removal-in-3.15.rst:71
150+
#: ../../deprecations/pending-removal-in-3.15.rst:61
168151
msgid ":mod:`types`:"
169152
msgstr ":mod:`types`:"
170153

171-
#: ../../deprecations/pending-removal-in-3.15.rst:73
154+
#: ../../deprecations/pending-removal-in-3.15.rst:63
172155
msgid ""
173156
":class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was "
174157
"deprecated in :pep:`626` since 3.10 and was planned to be removed in 3.12, "
@@ -180,12 +163,12 @@ msgstr ""
180163
"exc:`DeprecationWarning`。可能在 3.15 中移除。(由 Nikita Sobolev 於 :gh:"
181164
"`101866` 貢獻。)"
182165

183-
#: ../../deprecations/pending-removal-in-3.15.rst:80
166+
#: ../../deprecations/pending-removal-in-3.15.rst:70
184167
#: ../../deprecations/pending-removal-in-3.17.rst:26
185168
msgid ":mod:`typing`:"
186169
msgstr ":mod:`typing`:"
187170

188-
#: ../../deprecations/pending-removal-in-3.15.rst:82
171+
#: ../../deprecations/pending-removal-in-3.15.rst:72
189172
msgid ""
190173
"The undocumented keyword argument syntax for creating :class:`~typing."
191174
"NamedTuple` classes (for example, ``Point = NamedTuple(\"Point\", x=int, "
@@ -196,7 +179,7 @@ msgstr ""
196179
"(``Point = NamedTuple(\"Point\", x=int, y=int)``) 已自 Python 3.13 棄用。請改"
197180
"用基於類別的語法或函式語法 (functional syntax)。"
198181

199-
#: ../../deprecations/pending-removal-in-3.15.rst:88
182+
#: ../../deprecations/pending-removal-in-3.15.rst:78
200183
msgid ""
201184
"When using the functional syntax of :class:`~typing.TypedDict`\\s, failing "
202185
"to pass a value to the *fields* parameter (``TD = TypedDict(\"TD\")``) or "
@@ -209,7 +192,7 @@ msgstr ""
209192
"None)``) 的做法自 Python 3.13 起已被棄用。請使用 ``class TD(TypedDict): "
210193
"pass`` 或 ``TD = TypedDict(\"TD\", {})`` 來建立具有零個欄位的 TypedDict。"
211194

212-
#: ../../deprecations/pending-removal-in-3.15.rst:95
195+
#: ../../deprecations/pending-removal-in-3.15.rst:85
213196
msgid ""
214197
"The :func:`typing.no_type_check_decorator` decorator function has been "
215198
"deprecated since Python 3.13. After eight years in the :mod:`typing` module, "
@@ -219,11 +202,11 @@ msgstr ""
219202
"用。在 :mod:`typing` 模組中使用了八年之後,它尚未得到任何主要型別檢查器的支"
220203
"援。"
221204

222-
#: ../../deprecations/pending-removal-in-3.15.rst:100
205+
#: ../../deprecations/pending-removal-in-3.15.rst:90
223206
msgid ":mod:`wave`:"
224207
msgstr ":mod:`wave`:"
225208

226-
#: ../../deprecations/pending-removal-in-3.15.rst:102
209+
#: ../../deprecations/pending-removal-in-3.15.rst:92
227210
msgid ""
228211
"The :meth:`~wave.Wave_read.getmark`, :meth:`!setmark`, and :meth:`~wave."
229212
"Wave_read.getmarkers` methods of the :class:`~wave.Wave_read` and :class:"
@@ -233,11 +216,11 @@ msgstr ""
233216
"`~wave.Wave_read.getmark`、:meth:`!setmark` 和 :meth:`~wave.Wave_read."
234217
"getmarkers` 方法自 Python 3.13 被棄用。"
235218

236-
#: ../../deprecations/pending-removal-in-3.15.rst:107
219+
#: ../../deprecations/pending-removal-in-3.15.rst:97
237220
msgid ":mod:`zipimport`:"
238221
msgstr ":mod:`zipimport`:"
239222

240-
#: ../../deprecations/pending-removal-in-3.15.rst:109
223+
#: ../../deprecations/pending-removal-in-3.15.rst:99
241224
msgid ""
242225
":meth:`~zipimport.zipimporter.load_module` has been deprecated since Python "
243226
"3.10. Use :meth:`~zipimport.zipimporter.exec_module` instead. (Contributed "
@@ -1610,5 +1593,20 @@ msgstr ""
16101593
msgid ":c:func:`PyThread_ReInitTLS`: Unneeded since Python 3.7."
16111594
msgstr ":c:func:`PyThread_ReInitTLS`:自 Python 3.7 起不再需要。"
16121595

1596+
#~ msgid ":class:`locale`:"
1597+
#~ msgstr ":class:`locale`:"
1598+
1599+
#~ msgid ""
1600+
#~ "The :func:`~locale.getdefaultlocale` function has been deprecated since "
1601+
#~ "Python 3.11. Its removal was originally planned for Python 3.13 (:gh:"
1602+
#~ "`90817`), but has been postponed to Python 3.15. Use :func:`~locale."
1603+
#~ "getlocale`, :func:`~locale.setlocale`, and :func:`~locale.getencoding` "
1604+
#~ "instead. (Contributed by Hugo van Kemenade in :gh:`111187`.)"
1605+
#~ msgstr ""
1606+
#~ ":func:`~locale.getdefaultlocale` 已在 Python 3.11 中被棄用,原本計劃在 "
1607+
#~ "Python 3.13 中移除 (:gh:`90817`),但被延後至 Python 3.15。請改用 :func:"
1608+
#~ "`~locale.getlocale`、:func:`~locale.setlocale` 和 :func:`~locale."
1609+
#~ "getencoding`。 (由 Hugo van Kemenade 於 :gh:`111187` 貢獻。)"
1610+
16131611
#~ msgid "Delegation of ``int()`` to ``__trunc__()`` method."
16141612
#~ msgstr "將 ``int()`` 委派給 ``__trunc__()`` 方法。"

deprecations/pending-removal-in-3.15.po

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.14\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2026-02-18 00:20+0000\n"
8+
"POT-Creation-Date: 2026-06-12 00:46+0000\n"
99
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1111
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -87,39 +87,22 @@ msgid "``load_module()`` method: use ``exec_module()`` instead."
8787
msgstr "``load_module()`` method:請改用 ``exec_module()``。"
8888

8989
#: ../../deprecations/pending-removal-in-3.15.rst:36
90-
msgid ":class:`locale`:"
91-
msgstr ":class:`locale`:"
92-
93-
#: ../../deprecations/pending-removal-in-3.15.rst:38
94-
msgid ""
95-
"The :func:`~locale.getdefaultlocale` function has been deprecated since "
96-
"Python 3.11. Its removal was originally planned for Python 3.13 (:gh:"
97-
"`90817`), but has been postponed to Python 3.15. Use :func:`~locale."
98-
"getlocale`, :func:`~locale.setlocale`, and :func:`~locale.getencoding` "
99-
"instead. (Contributed by Hugo van Kemenade in :gh:`111187`.)"
100-
msgstr ""
101-
":func:`~locale.getdefaultlocale` 已在 Python 3.11 中被棄用,原本計劃在 "
102-
"Python 3.13 中移除 (:gh:`90817`),但被延後至 Python 3.15。請改用 :func:"
103-
"`~locale.getlocale`、:func:`~locale.setlocale` 和 :func:`~locale."
104-
"getencoding`。 (由 Hugo van Kemenade 於 :gh:`111187` 貢獻。)"
105-
106-
#: ../../deprecations/pending-removal-in-3.15.rst:46
10790
msgid ":mod:`pathlib`:"
10891
msgstr ":mod:`pathlib`:"
10992

110-
#: ../../deprecations/pending-removal-in-3.15.rst:48
93+
#: ../../deprecations/pending-removal-in-3.15.rst:38
11194
msgid ""
11295
":meth:`.PurePath.is_reserved` has been deprecated since Python 3.13. Use :"
11396
"func:`os.path.isreserved` to detect reserved paths on Windows."
11497
msgstr ""
11598
":meth:`.PurePath.is_reserved` 已自 Python 3.13 被棄用。請用 :func:`os.path."
11699
"isreserved` 來偵測 Windows 上的保留路徑。"
117100

118-
#: ../../deprecations/pending-removal-in-3.15.rst:52
101+
#: ../../deprecations/pending-removal-in-3.15.rst:42
119102
msgid ":mod:`platform`:"
120103
msgstr ":mod:`platform`:"
121104

122-
#: ../../deprecations/pending-removal-in-3.15.rst:54
105+
#: ../../deprecations/pending-removal-in-3.15.rst:44
123106
msgid ""
124107
":func:`~platform.java_ver` has been deprecated since Python 3.13. This "
125108
"function is only useful for Jython support, has a confusing API, and is "
@@ -128,23 +111,23 @@ msgstr ""
128111
"自 Python 3.13 起,:func:`~platform.java_ver` 已被棄用。此函式僅對 Jython 支"
129112
"援有用,具有令人困惑的 API,基本上未經測試。"
130113

131-
#: ../../deprecations/pending-removal-in-3.15.rst:58
114+
#: ../../deprecations/pending-removal-in-3.15.rst:48
132115
msgid ":mod:`sysconfig`:"
133116
msgstr ":mod:`sysconfig`:"
134117

135-
#: ../../deprecations/pending-removal-in-3.15.rst:60
118+
#: ../../deprecations/pending-removal-in-3.15.rst:50
136119
msgid ""
137120
"The *check_home* argument of :func:`sysconfig.is_python_build` has been "
138121
"deprecated since Python 3.12."
139122
msgstr ""
140123
":func:`sysconfig.is_python_build` 的 *check_home* 引數自 Python 3.12 起已被棄"
141124
"用。"
142125

143-
#: ../../deprecations/pending-removal-in-3.15.rst:63
126+
#: ../../deprecations/pending-removal-in-3.15.rst:53
144127
msgid ":mod:`threading`:"
145128
msgstr ":mod:`threading`:"
146129

147-
#: ../../deprecations/pending-removal-in-3.15.rst:65
130+
#: ../../deprecations/pending-removal-in-3.15.rst:55
148131
msgid ""
149132
":func:`~threading.RLock` will take no arguments in Python 3.15. Passing any "
150133
"arguments has been deprecated since Python 3.14, as the Python version does "
@@ -155,11 +138,11 @@ msgstr ""
155138
"起,傳遞任何引數的用法已被棄用,因為 Python 版本不允許任何引數,但 C 版本允許"
156139
"任意數量的位置或關鍵字引數,並忽略每個引數。"
157140

158-
#: ../../deprecations/pending-removal-in-3.15.rst:71
141+
#: ../../deprecations/pending-removal-in-3.15.rst:61
159142
msgid ":mod:`types`:"
160143
msgstr ":mod:`types`:"
161144

162-
#: ../../deprecations/pending-removal-in-3.15.rst:73
145+
#: ../../deprecations/pending-removal-in-3.15.rst:63
163146
msgid ""
164147
":class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was "
165148
"deprecated in :pep:`626` since 3.10 and was planned to be removed in 3.12, "
@@ -171,11 +154,11 @@ msgstr ""
171154
"exc:`DeprecationWarning`。可能在 3.15 中移除。(由 Nikita Sobolev 於 :gh:"
172155
"`101866` 貢獻。)"
173156

174-
#: ../../deprecations/pending-removal-in-3.15.rst:80
157+
#: ../../deprecations/pending-removal-in-3.15.rst:70
175158
msgid ":mod:`typing`:"
176159
msgstr ":mod:`typing`:"
177160

178-
#: ../../deprecations/pending-removal-in-3.15.rst:82
161+
#: ../../deprecations/pending-removal-in-3.15.rst:72
179162
msgid ""
180163
"The undocumented keyword argument syntax for creating :class:`~typing."
181164
"NamedTuple` classes (for example, ``Point = NamedTuple(\"Point\", x=int, "
@@ -186,7 +169,7 @@ msgstr ""
186169
"(``Point = NamedTuple(\"Point\", x=int, y=int)``) 已自 Python 3.13 棄用。請改"
187170
"用基於類別的語法或函式語法 (functional syntax)。"
188171

189-
#: ../../deprecations/pending-removal-in-3.15.rst:88
172+
#: ../../deprecations/pending-removal-in-3.15.rst:78
190173
msgid ""
191174
"When using the functional syntax of :class:`~typing.TypedDict`\\s, failing "
192175
"to pass a value to the *fields* parameter (``TD = TypedDict(\"TD\")``) or "
@@ -199,7 +182,7 @@ msgstr ""
199182
"None)``) 的做法自 Python 3.13 起已被棄用。請使用 ``class TD(TypedDict): "
200183
"pass`` 或 ``TD = TypedDict(\"TD\", {})`` 來建立具有零個欄位的 TypedDict。"
201184

202-
#: ../../deprecations/pending-removal-in-3.15.rst:95
185+
#: ../../deprecations/pending-removal-in-3.15.rst:85
203186
msgid ""
204187
"The :func:`typing.no_type_check_decorator` decorator function has been "
205188
"deprecated since Python 3.13. After eight years in the :mod:`typing` module, "
@@ -209,11 +192,11 @@ msgstr ""
209192
"用。在 :mod:`typing` 模組中使用了八年之後,它尚未得到任何主要型別檢查器的支"
210193
"援。"
211194

212-
#: ../../deprecations/pending-removal-in-3.15.rst:100
195+
#: ../../deprecations/pending-removal-in-3.15.rst:90
213196
msgid ":mod:`wave`:"
214197
msgstr ":mod:`wave`:"
215198

216-
#: ../../deprecations/pending-removal-in-3.15.rst:102
199+
#: ../../deprecations/pending-removal-in-3.15.rst:92
217200
msgid ""
218201
"The :meth:`~wave.Wave_read.getmark`, :meth:`!setmark`, and :meth:`~wave."
219202
"Wave_read.getmarkers` methods of the :class:`~wave.Wave_read` and :class:"
@@ -223,11 +206,11 @@ msgstr ""
223206
"`~wave.Wave_read.getmark`、:meth:`!setmark` 和 :meth:`~wave.Wave_read."
224207
"getmarkers` 方法自 Python 3.13 被棄用。"
225208

226-
#: ../../deprecations/pending-removal-in-3.15.rst:107
209+
#: ../../deprecations/pending-removal-in-3.15.rst:97
227210
msgid ":mod:`zipimport`:"
228211
msgstr ":mod:`zipimport`:"
229212

230-
#: ../../deprecations/pending-removal-in-3.15.rst:109
213+
#: ../../deprecations/pending-removal-in-3.15.rst:99
231214
msgid ""
232215
":meth:`~zipimport.zipimporter.load_module` has been deprecated since Python "
233216
"3.10. Use :meth:`~zipimport.zipimporter.exec_module` instead. (Contributed "
@@ -236,3 +219,18 @@ msgstr ""
236219
":meth:`~zipimport.zipimporter.load_module` 自 Python 3.10 被棄用。請改用 :"
237220
"meth:`~zipimport.zipimporter.exec_module`。(由 Jiahao Li 於 :gh:`125746` 貢"
238221
"獻。)"
222+
223+
#~ msgid ":class:`locale`:"
224+
#~ msgstr ":class:`locale`:"
225+
226+
#~ msgid ""
227+
#~ "The :func:`~locale.getdefaultlocale` function has been deprecated since "
228+
#~ "Python 3.11. Its removal was originally planned for Python 3.13 (:gh:"
229+
#~ "`90817`), but has been postponed to Python 3.15. Use :func:`~locale."
230+
#~ "getlocale`, :func:`~locale.setlocale`, and :func:`~locale.getencoding` "
231+
#~ "instead. (Contributed by Hugo van Kemenade in :gh:`111187`.)"
232+
#~ msgstr ""
233+
#~ ":func:`~locale.getdefaultlocale` 已在 Python 3.11 中被棄用,原本計劃在 "
234+
#~ "Python 3.13 中移除 (:gh:`90817`),但被延後至 Python 3.15。請改用 :func:"
235+
#~ "`~locale.getlocale`、:func:`~locale.setlocale` 和 :func:`~locale."
236+
#~ "getencoding`。 (由 Hugo van Kemenade 於 :gh:`111187` 貢獻。)"

0 commit comments

Comments
 (0)