7
7
msgstr ""
8
8
"Project-Id-Version :Python 3.13\n "
9
9
"Report-Msgid-Bugs-To :\n "
10
- "POT-Creation-Date :2024-09-03 11:11+0800 \n "
10
+ "POT-Creation-Date :2025-01-15 00:13+0000 \n "
11
11
"PO-Revision-Date :2018-05-23 16:02+0000\n "
12
12
"Last-Translator :Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -90,12 +90,20 @@ msgstr ""
90
90
91
91
#: ../../library/fnmatch.rst:49
92
92
msgid ""
93
- "Also note that :func:`functools.lru_cache` with the *maxsize* of 32768 is "
94
- "used to cache the compiled regex patterns in the following functions: :func:"
95
- "`fnmatch`, :func:`fnmatchcase`, :func:`.filter`."
93
+ "Unless stated otherwise,\" filename string\" and\" pattern string\" either "
94
+ "refer to :class:`str` or ``ISO-8859-1`` encoded :class:`bytes` objects. Note "
95
+ "that the functions documented below do not allow to mix a :class:`!bytes` "
96
+ "pattern with a :class:`!str` filename, and vice-versa."
96
97
msgstr ""
97
98
98
- #: ../../library/fnmatch.rst:55
99
+ #: ../../library/fnmatch.rst:54
100
+ msgid ""
101
+ "Finally, note that :func:`functools.lru_cache` with a *maxsize* of 32768 is "
102
+ "used to cache the (typed) compiled regex patterns in the following "
103
+ "functions: :func:`fnmatch`, :func:`fnmatchcase`, :func:`.filter`."
104
+ msgstr ""
105
+
106
+ #: ../../library/fnmatch.rst:61
99
107
msgid ""
100
108
"Test whether the filename string *name* matches the pattern string *pat*, "
101
109
"returning ``True`` or ``False``. Both parameters are case-normalized using :"
@@ -104,13 +112,13 @@ msgid ""
104
112
"operating system."
105
113
msgstr ""
106
114
107
- #: ../../library/fnmatch.rst:61
115
+ #: ../../library/fnmatch.rst:67
108
116
msgid ""
109
117
"This example will print all file names in the current directory with the "
110
118
"extension ``.txt``::"
111
119
msgstr ""
112
120
113
- #: ../../library/fnmatch.rst:64
121
+ #: ../../library/fnmatch.rst:70
114
122
msgid ""
115
123
"import fnmatch\n"
116
124
"import os\n"
@@ -126,35 +134,35 @@ msgstr ""
126
134
" if fnmatch.fnmatch(file, '*.txt'):\n"
127
135
" print(file)"
128
136
129
- #: ../../library/fnmatch.rst:74
137
+ #: ../../library/fnmatch.rst:80
130
138
msgid ""
131
139
"Test whether the filename string *name* matches the pattern string *pat*, "
132
140
"returning ``True`` or ``False``; the comparison is case-sensitive and does "
133
141
"not apply :func:`os.path.normcase`."
134
142
msgstr ""
135
143
136
- #: ../../library/fnmatch.rst:81
144
+ #: ../../library/fnmatch.rst:87
137
145
msgid ""
138
- "Construct a list from those elements of the :term:`iterable`*names* that "
139
- "match pattern *pat*. It is the same as ``[n for n in names if fnmatch(n, "
140
- "pat)]``, but implemented more efficiently."
146
+ "Construct a list from those elements of the :term:`iterable`of filename "
147
+ "strings *names* that matchthe patternstring *pat*. It is the same as ``[n "
148
+ "for n in names if fnmatch(n, pat)]``, but implemented more efficiently."
141
149
msgstr ""
142
150
143
- #: ../../library/fnmatch.rst:89
151
+ #: ../../library/fnmatch.rst:95
144
152
msgid ""
145
153
"Return the shell-style pattern *pat* converted to a regular expression for "
146
- "using with :func:`re.match`."
154
+ "using with :func:`re.match`. The pattern is expected to be a :class:`str`. "
147
155
msgstr ""
148
156
149
- #: ../../library/fnmatch.rst:92
157
+ #: ../../library/fnmatch.rst:98
150
158
msgid "Example:"
151
159
msgstr "範例:"
152
160
153
- #: ../../library/fnmatch.rst:106
161
+ #: ../../library/fnmatch.rst:112
154
162
msgid "Module :mod:`glob`"
155
163
msgstr ":mod:`glob` 模組"
156
164
157
- #: ../../library/fnmatch.rst:107
165
+ #: ../../library/fnmatch.rst:113
158
166
msgid "Unix shell-style path expansion."
159
167
msgstr ""
160
168