Is None a builtin?
In [1]: from keyword import kwlist
In [3]: 'Ellipsis' in kwlist
Out[3]: False
In [4]: 'None' in kwlist
Out[4]: True
Maybe we should change
This type has a single value. There is a single object with this value.
This object is accessed through the built-in name None. It is used to
signify the absence of a value in many situations, e.g., it is returned
from functions that don’t explicitly return anything. Its truth value is
false.
to
This type has a single value. There is a single object with this value.
This object is accessed through the keyword None. It is used to signify the
absence of a value in many situations, e.g., it is returned from functions
that don’t explicitly return anything. Its truth value is false.
Best,
Neil
On Monday, July 23, 2018 at 2:31:21 PM UTC-4, Jörn Heissler wrote:
>
> On Mon, Jul 23, 2018 at 10:03:10 +0100, Jonathan Fine wrote:
> > I thought, a page on how None is special would be nice.
> > I've not found such a page on the web. We do have
> > ===
> > https://docs.python.org/3/library/constants.html
>
> Hi,
>
> there's also
>
> https://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy
>
> None
>
> This type has a single value. There is a single object with this
> value. This object is accessed through the built-in name None. It is
> used to signify the absence of a value in many situations, e.g., it
> is returned from functions that don’t explicitly return anything.
> Its truth value is false.
>
>
> Cheers
> Jörn Heissler
> _______________________________________________
> Python-ideas mailing list
> python...@python.org <javascript:>
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/