https://github.com/python/cpython/commit/7e154bea3d78ab5384fead097b5164ac98701c26 commit: 7e154bea3d78ab5384fead097b5164ac98701c26 branch: 3.13 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: AA-Turner <9087854+aa-tur...@users.noreply.github.com> date: 2025-04-05T19:26:40Z summary:
[3.13] Fix numbered list syntax in programming.rst (GH-130158) (#132140) Fix numbered list syntax in programming.rst (GH-130158) (cherry picked from commit 376631829aab72e320e19102fc55cbca5af8c733) Co-authored-by: Rafael Fontenelle <rffontene...@users.noreply.github.com> files: M Doc/faq/programming.rst diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index b39efced304e45..9f9e4fab685b19 100644 --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -1868,15 +1868,15 @@ object identity is assured. Generally, there are three circumstances where identity is guaranteed: 1) Assignments create new names but do not change object identity. After the -assignment ``new = old``, it is guaranteed that ``new is old``. + assignment ``new = old``, it is guaranteed that ``new is old``. 2) Putting an object in a container that stores object references does not -change object identity. After the list assignment ``s[0] = x``, it is -guaranteed that ``s[0] is x``. + change object identity. After the list assignment ``s[0] = x``, it is + guaranteed that ``s[0] is x``. 3) If an object is a singleton, it means that only one instance of that object -can exist. After the assignments ``a = None`` and ``b = None``, it is -guaranteed that ``a is b`` because ``None`` is a singleton. + can exist. After the assignments ``a = None`` and ``b = None``, it is + guaranteed that ``a is b`` because ``None`` is a singleton. In most other circumstances, identity tests are inadvisable and equality tests are preferred. In particular, identity tests should not be used to check _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com