On Thu, Sep 02, 2021 at 04:04:40PM +0900, Stephen J. Turnbull wrote:

> You may not need to teach them about singletons, though.

It's hard to teach why `is` works with None, but not with 1.234 or [], 
without talking about the object model and singletons.

To say nothing of why it works with 0 and 1 but not 123456.


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

Reply via email to