MRAB wrote: > The assertions could still fail because there's nothing there to say > that a0, b0 and c0 are strings, or, indeed, that there isn't a comma in > one of them. > .
That's true. But that's a weakness of parsing any ambiguous pattern, even with regular expressions. It would be up to the user to make sure their pattern is not too ambiguous for their use case. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/57K67AOLVOEQQ2WGUODBMC53C7VEM44P/ Code of Conduct: http://python.org/psf/codeofconduct/