1. Armin Rigo
  2. cpython-withatomic

Commits

Guido van Rossum  committed fc11ff2

The 'l' flag (locale specific matching) has been renamed to 'L'.

  • Participants
  • Parent commits b19cd43
  • Branches legacy-trunk

Comments (0)

Files changed (3)

File Doc/lib/libre.tex

View file
 determines what the meaning and further syntax of the construct is.
 Following are the currently supported extensions.
 %
-\item[\code{(?ilmsx)}] (One or more letters from the set 'i', 'l', 'm', 's',
+\item[\code{(?iLmsx)}] (One or more letters from the set 'i', 'L', 'm', 's',
 'x'.) The group matches the empty string; the letters set the
 corresponding flags (re.I, re.L, re.M, re.S, re.X) for the entire regular
-expression.  This is useful if you wish include the flags as part of the regular
+expression.  (The flag 'L' is uppercase because it is not in standard Perl.)
+This is useful if you wish include the flags as part of the regular
 expression, instead of passing a \var{flag} argument to the \code{compile} function.
 %
 \item[\code{(?:...)}] A non-grouping version of regular parentheses.

File Doc/libre.tex

View file
 determines what the meaning and further syntax of the construct is.
 Following are the currently supported extensions.
 %
-\item[\code{(?ilmsx)}] (One or more letters from the set 'i', 'l', 'm', 's',
+\item[\code{(?iLmsx)}] (One or more letters from the set 'i', 'L', 'm', 's',
 'x'.) The group matches the empty string; the letters set the
 corresponding flags (re.I, re.L, re.M, re.S, re.X) for the entire regular
-expression.  This is useful if you wish include the flags as part of the regular
+expression.  (The flag 'L' is uppercase because it is not in standard Perl.)
+This is useful if you wish include the flags as part of the regular
 expression, instead of passing a \var{flag} argument to the \code{compile} function.
 %
 \item[\code{(?:...)}] A non-grouping version of regular parentheses.

File Modules/pypcre.c

View file
         {
         case '#':
         case 'i':
-        case 'l':
+        case 'L':
         case 'm':
         case 's':
         case 'x':
           options |= PCRE_CASELESS;
           continue;
           }
-        else if ((c = *ptr) == 'l')
+        else if ((c = *ptr) == 'L')
           {
           options |= PCRE_LOCALE;
           continue;