1
1
# SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2024 , Python Software Foundation
2
+ # Copyright (C) 2001-2025 , Python Software Foundation
3
3
# This file is distributed under the same license as the Python package.
4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.12\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2024-09-27 14:50 +0000\n "
14
+ "POT-Creation-Date : 2025-01-17 14:51 +0000\n "
15
15
"PO-Revision-Date : 2024-05-11 00:33+0000\n "
16
16
"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
17
17
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -98,14 +98,20 @@ msgstr ""
98
98
99
99
#: ../../library/fnmatch.rst:49
100
100
msgid ""
101
- "Also note that :func:`functools.lru_cache` with the *maxsize* of 32768 is "
102
- "used to cache the compiled regex patterns in the following functions: "
103
- ":func:`fnmatch`, :func:`fnmatchcase`, :func:`.filter`."
101
+ "Unless stated otherwise, \" filename string\" and \" pattern string\" either "
102
+ "refer to :class:`str` or ``ISO-8859-1`` encoded :class:`bytes` objects. Note"
103
+ " that the functions documented below do not allow to mix a :class:`!bytes` "
104
+ "pattern with a :class:`!str` filename, and vice-versa."
104
105
msgstr ""
105
- "还要注意是使用将 *maxsize* 设为 32768 的 :func:`functools.lru_cache` 来缓存下列函数中的已编译正则表达式:"
106
- " :func:`fnmatch`, :func:`fnmatchcase`, :func:`.filter`。"
107
106
108
- #: ../../library/fnmatch.rst:55
107
+ #: ../../library/fnmatch.rst:54
108
+ msgid ""
109
+ "Finally, note that :func:`functools.lru_cache` with a *maxsize* of 32768 is "
110
+ "used to cache the (typed) compiled regex patterns in the following "
111
+ "functions: :func:`fnmatch`, :func:`fnmatchcase`, :func:`.filter`."
112
+ msgstr ""
113
+
114
+ #: ../../library/fnmatch.rst:61
109
115
msgid ""
110
116
"Test whether the filename string *name* matches the pattern string *pat*, "
111
117
"returning ``True`` or ``False``. Both parameters are case-normalized using "
@@ -118,13 +124,13 @@ msgstr ""
118
124
"可被用于执行大小写敏感的比较,无论这是否为所在操作系统的标准。can be used to perform a case-sensitive "
119
125
"comparison, regardless of whether that's standard for the operating system."
120
126
121
- #: ../../library/fnmatch.rst:61
127
+ #: ../../library/fnmatch.rst:67
122
128
msgid ""
123
129
"This example will print all file names in the current directory with the "
124
130
"extension ``.txt``::"
125
131
msgstr "这个例子将打印当前目录下带有扩展名 ``.txt`` 的所有文件名::"
126
132
127
- #: ../../library/fnmatch.rst:64
133
+ #: ../../library/fnmatch.rst:70
128
134
msgid ""
129
135
"import fnmatch\n"
130
136
"import os\n"
@@ -140,7 +146,7 @@ msgstr ""
140
146
" if fnmatch.fnmatch(file, '*.txt'):\n"
141
147
" print(file)"
142
148
143
- #: ../../library/fnmatch.rst:74
149
+ #: ../../library/fnmatch.rst:80
144
150
msgid ""
145
151
"Test whether the filename string *name* matches the pattern string *pat*, "
146
152
"returning ``True`` or ``False``; the comparison is case-sensitive and does "
@@ -149,30 +155,28 @@ msgstr ""
149
155
"检测文件名字符串 *name* 是否匹配模式字符串 *pat*,返回 ``True`` 或 ``False``;此比较是大小写敏感的并且不会应用 "
150
156
":func:`os.path.normcase`。"
151
157
152
- #: ../../library/fnmatch.rst:81
158
+ #: ../../library/fnmatch.rst:87
153
159
msgid ""
154
- "Construct a list from those elements of the :term:`iterable` *names* that "
155
- "match pattern *pat*. It is the same as ``[n for n in names if fnmatch(n, "
156
- "pat)]``, but implemented more efficiently."
160
+ "Construct a list from those elements of the :term:`iterable` of filename "
161
+ "strings *names* that match the pattern string *pat*. It is the same as ``[n "
162
+ "for n in names if fnmatch(n, pat)]``, but implemented more efficiently."
157
163
msgstr ""
158
- "基于 :term:`iterable` *names* 中匹配模式 *pat* 的元素构造一个列表。 它等价于 ``[n for n in names "
159
- "if fnmatch(n, pat)]``,但实现得更为高效。"
160
164
161
- #: ../../library/fnmatch.rst:89
165
+ #: ../../library/fnmatch.rst:95
162
166
msgid ""
163
167
"Return the shell-style pattern *pat* converted to a regular expression for "
164
- "using with :func:`re.match`."
165
- msgstr "返回由 shell 风格的模式 *pat* 转换成的正则表达式以便用于 :func:`re.match`。 "
168
+ "using with :func:`re.match`. The pattern is expected to be a :class:`str`. "
169
+ msgstr ""
166
170
167
- #: ../../library/fnmatch.rst:92
171
+ #: ../../library/fnmatch.rst:98
168
172
msgid "Example:"
169
173
msgstr "示例:"
170
174
171
- #: ../../library/fnmatch.rst:106
175
+ #: ../../library/fnmatch.rst:112
172
176
msgid "Module :mod:`glob`"
173
177
msgstr "模块 :mod:`glob`"
174
178
175
- #: ../../library/fnmatch.rst:107
179
+ #: ../../library/fnmatch.rst:113
176
180
msgid "Unix shell-style path expansion."
177
181
msgstr "Unix shell 风格路径扩展。"
178
182
0 commit comments