[Python-ideas] Optional parameters without default value
Matthias Bussonnier
bussonniermatthias at gmail.com
Fri Mar 3 00:46:03 EST 2017
On Thu, Mar 2, 2017 at 9:13 PM, Mike Miller <python-ideas at mgmiller.net> wrote:
>
> It is a built-in singleton so rarely known that you will almost never
> encounter code with it, so you'll have it all to yourself. Even on a python
> mailing list, in a thread about sentinels/singletons, it will not be
> mentioned. Some may "consider it unnatural." It is…
>
> …
>
> … (hint)
>
> … (wait for it)
>
> …
>
<3 the suspens ! I got it before the end though !
I'll tell you my secret as well. I have my own
(https://pypi.python.org/pypi/undefined)
I've set it up to raise on __eq__ or __bool__ to enforce checking for identity.
--
M
More information about the Python-ideas
mailing list