Just define a function. And don't be a dick. 

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

Reply via email to