On Fri, Oct 15, 2021 at 3:37 PM Ricky Teachey <ri...@teachey.org> wrote:

> You say a soft keyword isn't an option and I understand why, but what
> about one that is incredibly unlikely to have been used very often? I'm
> thinking of just a simple double underscore:
>
> >>> a = __
> >>> a
> 'a'
>
> This would be a breaking change, but surely __ is not in widespread
> use...? And I think it looks a bit of alright.
>
> >>> Point = NamedTuple(__, "x y")
>
> ---
> Ricky.
>
> "I've never met a Kentucky man who wasn't either thinking about going home
> or actually going home." - Happy Chandler
>
>
IIRC those implementing pattern matching want to use `__` as literally a
non-binding name. They can't use `_` as is done in some other languages as
that
name is used with some regularity by python modules.

Regards,
~ Jeremiah
_______________________________________________
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/TVJV7AV6UT4XXS2JFSZUEA7JXWZ2KUWM/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to