On Thu, Dec 5, 2019, at 12:25, Andrew Barnert via Python-ideas wrote: > It’s unfortunate that these functions aren’t better matched. Why is > there a simple-semantics find-everything and a match-semantics > find-iteratively and find-one? But I don’t think adding a > simple-semantics find-one that works by inefficiently finding all is > the right solution.
If match objects are too hard to use, maybe they should be made more user-friendly? What about adding str and iterable semantics to match objects so it can be used as str(re.search(...)); tuple(re.search(...)); a, b = re.search(...)? _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/7J66UKDFWSSBNRIRL5C6WR465EA3BFGH/ Code of Conduct: http://python.org/psf/codeofconduct/
