[Python-checkins] cpython (merge 3.6 -> default): 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/d103ee917342
changeset: 104761:d103ee917342
parent: 104757:ded9a3c3bbb6
parent: 104760:dfda2f33fd08
user: Serhiy Storchaka <storchaka at gmail.com>
date: Thu Oct 27 22:50:29 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 によって変換されたページ (->オリジナル) /