There's also the workaround:

def raise_(t, *a,*kw):
    raise t(*a,**kw)

> On 27 Oct 2019, at 14:57, Soni L. <fakedme...@gmail.com> wrote:
> 
> foo.setParseAction(lambda a, b, c: raise FuckPython(":(")) is invalid 
> syntax, which makes pyparsing useless.
> _______________________________________________
> 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/MAVQH4N6SMMJKG4O4DFNNLXECYVZ6ECF/
> Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________
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/XG4UVN7Z7W576PC2NNOML4WEHDJAQ45T/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to