Kaydet (Commit) 9647389c authored tarafından Georg Brandl's avatar Georg Brandl

Remove 1.5.2 incompatibility notes from RE docs.

üst 7864476a
...@@ -530,8 +530,7 @@ form. ...@@ -530,8 +530,7 @@ form.
used in *pattern*, then the text of all groups in the pattern are also returned 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* 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 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, of the list. ::
*maxsplit* was ignored. This has been fixed in later releases.) ::
>>> re.split('\W+', 'Words, words, words.') >>> re.split('\W+', 'Words, words, words.')
['Words', 'words', 'words', ''] ['Words', 'words', 'words', '']
...@@ -798,10 +797,7 @@ support the following methods and attributes: ...@@ -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 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 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 did not participate in the match; it defaults to ``None``.
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.)
For example:: For example::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment