On Sun, Oct 27, 2019, 10:38 AM Soni L. <fakedme...@gmail.com> wrote:

> that's a waste of a perfectly good name in the namespace.
>
> On 2019-10-27 11:27 a.m., Anders Hovmöller wrote:
> > Just define a function. And don't be a dick.
> >
> > > 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.
>

def lovepython(a, b, c):
    raise LovePython(":)")

foo.setParseAction(lovepython)

del lovepython  # :(

>
_______________________________________________
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/BKVR7HEJ4QBIOYAXLTMTUTBOF64HMHSS/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to