Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e45ef4e

Browse files
Issue python#22949: Documented that fnmatch.translate() is for use with re.match().
2 parents e0a220e + a65a474 commit e45ef4e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/fnmatch.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ patterns.
7474

7575
.. function:: translate(pattern)
7676

77-
Return the shell-style *pattern* converted to a regular expression.
77+
Return the shell-style *pattern* converted to a regular expression for
78+
using with :func:`re.match`.
7879

7980
Example:
8081

0 commit comments

Comments
 (0)