[issue44940] Hint the use of non-capturing group in re.findall() documentation

Vedran Čačić report at bugs.python.org
Thu Aug 19 07:22:07 EDT 2021


Vedran Čačić <vedgar at gmail.com> added the comment:

It currently says:

...matches are returned in the order found. If one or more groups are present in the pattern, return a list of groups...

I'm not quite sure how it could be clearer. Maybe "Alternatively" at the start of the second sentence?

regexr does the same thing, as far as I can see. Match is 'cool', group 1 is empty. Matches are not the same as groups.

----------
nosy: +veky

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


More information about the Python-bugs-list mailing list