[Python-ideas] Fwd: Define a method or function attribute outside of a class with the dot operator

Paul Moore p.f.moore at gmail.com
Fri Feb 10 09:06:04 EST 2017

On 10 February 2017 at 13:55, Stephan Houben <stephanh42 at gmail.com> wrote:
> My point would be that the new syntax *also* requires one to figure out what
> the new syntax does.

This is an extremely good point. It is mentioned when new syntax is
proposed (the term often used is "discoverability") but the idea never
seems to stick, as people keep forgetting to consider it when
proposing new ideas.

With this proposal the only thing you can search for is "def", and
you're going to mostly find sites that explain the current syntax. So
anyone looking for understanding of the new construct will likely end
up even more confused after searching than they were before.

Markus - if you do write up a PEP, please make sure this point is
noted and addressed.


More information about the Python-ideas mailing list