On Fri, Aug 28, 2020 at 05:30:26PM +0900, Stephen J. Turnbull wrote:
> David Mertz writes:
> 
>  > I support named indices.  But I strongly oppose using them in list,
>  > tuple, or dict themselves.  So `mylist[99, default=4]` would still
>  > be a syntax error (or maybe a different exception).
> 
> I don't think it can be a SyntaxError because you can't always know
> that mylist is a builtin list.

It shouldn't be a syntax error because it wouldn't be a syntax error.



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

Reply via email to