[Python-checkins] cpython (merge 3.5 -> 3.6): Issue #22949: Documented that fnmatch.translate() is for use with re.match().

serhiy.storchaka python-checkins at python.org
Thu Oct 27 15:50:48 EDT 2016


https://hg.python.org/cpython/rev/dfda2f33fd08
changeset: 104760:dfda2f33fd08
branch: 3.6
parent: 104756:c04a56b3a4f2
parent: 104758:a1aef5f84142
user: Serhiy Storchaka <storchaka at gmail.com>
date: Thu Oct 27 22:50:15 2016 +0300
summary:
 Issue #22949: Documented that fnmatch.translate() is for use with re.match().
files:
 Doc/library/fnmatch.rst | 3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst
--- a/Doc/library/fnmatch.rst
+++ b/Doc/library/fnmatch.rst
@@ -74,7 +74,8 @@
 
 .. function:: translate(pattern)
 
- Return the shell-style *pattern* converted to a regular expression.
+ Return the shell-style *pattern* converted to a regular expression for
+ using with :func:`re.match`.
 
 Example:
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /