diff options
Diffstat (limited to 'Lib/regex_syntax.py')
-rw-r--r-- | Lib/regex_syntax.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Lib/regex_syntax.py b/Lib/regex_syntax.py index 8631f42..aab7e7a 100644 --- a/Lib/regex_syntax.py +++ b/Lib/regex_syntax.py @@ -1,5 +1,11 @@ -# These bits are passed to regex.set_syntax() to choose among -# alternative regexp syntaxes. +"""Constants for selecting regexp syntaxes for the obsolete regex module. + +This module is only for backward compatibility. "regex" has now +been replaced by the new regular expression module, "re". + +These bits are passed to regex.set_syntax() to choose among +alternative regexp syntaxes. +""" # 1 means plain parentheses serve as grouping, and backslash # parentheses are needed for literal searching. |