[Python-ideas] Python docs page: In what ways is None special
David Mertz
mertz at gnosis.cx
Tue Aug 14 13:25:06 EDT 2018
Great work! There are a few typos, I'll try to get to a PR on those.
I wonder if it's worth noting that None is a singleton, while 42 is just a
value. I.e. there might be several distinct objects that happen to be the
int 42, but not so with None.
Of course, in CPython, small integers are cached as the same object, but
larger integers are not necessarily cached. This has varied in details
between Python implementations and even versions, it's not a semantic
promise like None carries.
Maybe that's too far in the weeds for an intro though.
On Tue, Aug 14, 2018, 6:29 AM Jonathan Fine <jfine2358 at gmail.com> wrote:
> Hi
>
> I'm pleased to announce that I've completed the first draft of my
> page. It's viewable on gitub.
>
> https://github.com/jfine2358/py-jfine2358/blob/master/docs/none-is-special.md
>
> To quote from that page:
>
> This page arose from a thread on the python-ideas list. I thank Steve
> Dower, Paul Moore, Steve D'Aprano, Chris Barker, David Mertz, Jörn
> Heissler, Anthony Risinger, Michael Selik, Chris Angelico for their
> contributions and encouragement.
>
> Apologies for anyone I've missed. Comments either on python-ideas, or
> perhaps better, by raising an issue on github.
>
> --
> Jonathan
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180814/98731e9d/attachment.html>
More information about the Python-ideas
mailing list