Public bug reported: similar to bug 1917318
IMPACT: Python 3.8 has started to emit warnings for code that confuses equality and identity. For more background see https://adamj.eu/tech/2020/01/21 /why-does-python-3-8-syntaxwarning-for-is-literal/ While it is just a warning, it is very visible when running ansible on focal for example, to the point of making the output incredibly hard to follow. Furthermore, the indifference between identity and equality might be creating true bugs as discussed in above blog entry. It seems advisable to fix this incorrect code when found. >From the terminal when installing python3-mpmath: Setting up python3-mpmath (1.1.0-2) ... /usr/lib/python3/dist-packages/mpmath/ctx_mp_python.py:892: SyntaxWarning: "is" with a literal. Did you mean "=="? if other is 0: /usr/lib/python3/dist-packages/mpmath/ctx_mp_python.py:986: SyntaxWarning: "is" with a literal. Did you mean "=="? if other is 0: This was fixed upstream in version 1.2.0 and thus does not affect hirsute and later. ** Affects: mpmath (Ubuntu) Importance: Undecided Status: New ** Tags: focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1932140 Title: code confuses identity and equality To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mpmath/+bug/1932140/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs