On Sat, Feb 11, 2017 at 06:33:39PM +1300, Greg Ewing wrote:
> Chris Angelico wrote:
> >Which is why these proposals always seem to gravitate to "anything you
> >can assign to",
> 
> There might be some parsing difficulties with that, e.g.
> 
>    def foo(x)[5](y, z):
>       ...
> 
> That should be acceptable, because foo(x)[5] is something
> assignable, but foo(x) looks like the beginning of the
> definition of a function called foo. I'm not sure whether
> the parser would cope with that.

Forget the parser. I know *I* can't cope with that.

*wink*


-- 
Steve
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to