diff options
author | Eric V. Smith <eric@trueblade.com> | 2016-09-11 13:50:47 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2016-09-11 13:50:47 (GMT) |
commit | b5690864baf4fce678d80639a6ed9e239bc0065a (patch) | |
tree | 45273e17a6feb8ef6118ba0b3fcbbf9b9dca1f2f /Doc/whatsnew | |
parent | b7e3535a08a27404f0919ea6ee7b2ed40c144399 (diff) | |
download | cpython-b5690864baf4fce678d80639a6ed9e239bc0065a.zip cpython-b5690864baf4fce678d80639a6ed9e239bc0065a.tar.gz cpython-b5690864baf4fce678d80639a6ed9e239bc0065a.tar.bz2 |
Issue 24454: Added whatsnew entry, removed __getitem__ from match_methods. Thanks Serhiy Storchaka.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.6.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst index a3f216f..d0aad49 100644 --- a/Doc/whatsnew/3.6.rst +++ b/Doc/whatsnew/3.6.rst @@ -724,6 +724,10 @@ Added support of modifier spans in regular expressions. Examples: ``'(?i)g(?-i:v)r'`` matches ``'GvR'`` and ``'gvr'``, but not ``'GVR'``. (Contributed by Serhiy Storchaka in :issue:`433028`.) +Match object groups can be accessed by ``__getitem__``, which is +equivalent to ``group()``. So ``mo['name']`` is now equivalent to +``mo.group('name')``. (Contributed by Eric Smith in :issue:`24454`.) + readline -------- |