diff options
author | Georg Brandl <georg@python.org> | 2008-03-06 07:09:43 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-06 07:09:43 (GMT) |
commit | 9647389c7787c11f390ef78902310bc0e61ce479 (patch) | |
tree | 54a7058a764a96d7e204aa6228ab216db1699d50 /Doc | |
parent | 7864476afa402a0537c33ba9630e77351720baf8 (diff) | |
download | cpython-9647389c7787c11f390ef78902310bc0e61ce479.zip cpython-9647389c7787c11f390ef78902310bc0e61ce479.tar.gz cpython-9647389c7787c11f390ef78902310bc0e61ce479.tar.bz2 |
Remove 1.5.2 incompatibility notes from RE docs.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/re.rst | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 852511c..c3ec777 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -530,8 +530,7 @@ form. used in *pattern*, then the text of all groups in the pattern are also returned as part of the resulting list. If *maxsplit* is nonzero, at most *maxsplit* splits occur, and the remainder of the string is returned as the final element - of the list. (Incompatibility note: in the original Python 1.5 release, - *maxsplit* was ignored. This has been fixed in later releases.) :: + of the list. :: >>> re.split('\W+', 'Words, words, words.') ['Words', 'words', 'words', ''] @@ -798,10 +797,7 @@ support the following methods and attributes: Return a tuple containing all the subgroups of the match, from 1 up to however many groups are in the pattern. The *default* argument is used for groups that - did not participate in the match; it defaults to ``None``. (Incompatibility - note: in the original Python 1.5 release, if the tuple was one element long, a - string would be returned instead. In later versions (from 1.5.1 on), a - singleton tuple is returned in such cases.) + did not participate in the match; it defaults to ``None``. For example:: |