On Tue, Oct 27, 2020 at 5:01 AM Dennis Sweeney <sweeney.dennis...@gmail.com> wrote: > > 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. >
They would unambiguously be strings (there's nothing else that that pattern could logically imply), so the only consideration is whether the input has the commas, which is a normal concern of all parsing. ChrisA _______________________________________________ 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/NG3UCLSG5RRPLM46YZ6WEWWTAYPXHE4X/ Code of Conduct: http://python.org/psf/codeofconduct/