Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
I'll add a note to this effect in the tutorial. Also, in the FAQ, we could have an entry about the three circumstances when "is" can relied upon: 1) variable assignment doesn't change identity, 2) containers that use references don't change identity, and 3) singletons don't change identity. ---------- assignee: docs@python -> rhettinger nosy: +rhettinger _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43325> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com