[Python-checkins] CVS: python/dist/src/Lib sre.py,1.35,1.36
Fred L. Drake
fdrake@users.sourceforge.net
Tue, 04 Sep 2001 12:20:08 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/test test_audioop.py,1.9,1.10 test_augassign.py,1.3,1.4 test_b1.py,1.39,1.40 test_binascii.py,1.8,1.9 test_binop.py,1.3,1.4 test_compare.py,1.5,1.6 test_long.py,1.12,1.13 test_operator.py,1.6,1.7 test_pty.py,1.12,1.13 test_strftime.py,1.25,1.26
- Next message: [Python-checkins] CVS: python/dist/src/Modules _cursesmodule.c,2.54,2.55
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv32197
Modified Files:
sre.py
Log Message:
Convert docstring to "raw" string.
Index: sre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** sre.py 2001/09/04 19:10:20 1.35
--- sre.py 2001/09/04 19:20:06 1.36
***************
*** 15,19 ****
#
! """Support for regular expressions (RE).
This module provides regular expression matching operations similar to
--- 15,19 ----
#
! r"""Support for regular expressions (RE).
This module provides regular expression matching operations similar to
***************
*** 57,74 ****
below. If the ordinary character is not on the list, then the
resulting RE will match the second character.
! \\number Matches the contents of the group of the same number.
! \\A Matches only at the start of the string.
! \\Z Matches only at the end of the string.
! \\b Matches the empty string, but only at the start or end of a word.
! \\B Matches the empty string, but not at the start or end of a word.
! \\d Matches any decimal digit; equivalent to the set [0-9].
! \\D Matches any non-digit character; equivalent to the set [^0-9].
! \\s Matches any whitespace character; equivalent to [ \\t\\n\\r\\f\\v].
! \\S Matches any non-whitespace character; equiv. to [^ \\t\\n\\r\\f\\v].
! \\w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_].
With LOCALE, it will match the set [0-9_] plus characters defined
as letters for the current locale.
! \\W Matches the complement of \\w.
! \\\\ Matches a literal backslash.
This module exports the following functions:
--- 57,74 ----
below. If the ordinary character is not on the list, then the
resulting RE will match the second character.
! \number Matches the contents of the group of the same number.
! \A Matches only at the start of the string.
! \Z Matches only at the end of the string.
! \b Matches the empty string, but only at the start or end of a word.
! \B Matches the empty string, but not at the start or end of a word.
! \d Matches any decimal digit; equivalent to the set [0-9].
! \D Matches any non-digit character; equivalent to the set [^0-9].
! \s Matches any whitespace character; equivalent to [ \t\n\r\f\v].
! \S Matches any non-whitespace character; equiv. to [^ \t\n\r\f\v].
! \w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_].
With LOCALE, it will match the set [0-9_] plus characters defined
as letters for the current locale.
! \W Matches the complement of \w.
! \\ Matches a literal backslash.
This module exports the following functions:
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/test test_audioop.py,1.9,1.10 test_augassign.py,1.3,1.4 test_b1.py,1.39,1.40 test_binascii.py,1.8,1.9 test_binop.py,1.3,1.4 test_compare.py,1.5,1.6 test_long.py,1.12,1.13 test_operator.py,1.6,1.7 test_pty.py,1.12,1.13 test_strftime.py,1.25,1.26
- Next message: [Python-checkins] CVS: python/dist/src/Modules _cursesmodule.c,2.54,2.55
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]