[issue29459] `__contains__` and `get` methods for match objects?
Serhiy Storchaka
report at bugs.python.org
Mon Feb 6 03:23:06 EST 2017
Serhiy Storchaka added the comment:
I predicted that that change will open a can of worms.
The match object is not a dictionary. I don't see a need in new methods. The get() method you propose looks virtually the same as the group() method. "'a' in match" is virtually the same as "match.get('a') is not None".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29459>
_______________________________________
More information about the Python-bugs-list
mailing list