[Python-ideas] Method signature syntactic sugar (especially for dunder methods)
Nick Timkovich
prometheus235 at gmail.com
Tue Nov 8 17:05:48 EST 2016
Also you can support future changes to the syntax (e.g. __matmul__ and
friends from 3.5, __aiter__ from 3.5.2) with a single codebase rather than
having to push that grammar back to previous versions (impossible?) or have
the grammar for magic methods be extraordinarily general (messy?)
On Tue, Nov 8, 2016 at 3:56 PM, Greg Ewing <greg.ewing at canterbury.ac.nz>
wrote:
> Another advantage of dunder method names is that you
> can google them. Someone coming across a method called
> "__foo__" can easily find documentation about it, but
> it's not so easy to do that for special syntax.
>
> --
> Greg
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20161108/6db964c2/attachment.html>
More information about the Python-ideas
mailing list