[issue39165] Completeness and symmetry in RE, avoid `findall(...)[0]`

Raymond Hettinger report at bugs.python.org
Tue Dec 31 17:02:17 EST 2019


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

-1 

I think the module is better-off without this function.  There are already more functions than most people know or remember.  For most cases, re.search() or re.finditer() will suffice.  

Also, I don't recall having seen findall(...)[0].  If it does exist, it is likely an education problem (i.e. something that can be addressed with documentation or a faq).

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list