[issue31969] re.groups() is not checking the arguments

Narendra report at bugs.python.org
Tue Nov 7 08:21:42 EST 2017


Narendra <cnrprfnl at gmail.com> added the comment:

Please look in to the following example:

>>> m.groups()
('narendra', 'happiestmidns', 'com')
>>> m.groups(1)
('narendra', 'happiestmidns', 'com')
>>> m.groups(34)
('narendra', 'happiestmidns', 'com')
>>> m.groups(10000000000000000000000000000000000000000000000000000000)
('narendra', 'happiestmidns', 'com')
>>>

----------
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31969>
_______________________________________


More information about the Python-bugs-list mailing list