[issue43151] is with literals in 3.8 release

Gary Litvin report at bugs.python.org
Sun Feb 7 01:02:03 EST 2021


Gary Litvin <litvin at skylit.com> added the comment:

Thank you for your responses. I understand the difference between == 
and "is" and the intentional change in 3.8. My question is about what 
seems to be inconsistent treatment in x is 'a' and if a is 'a': ...

At 12:49 AM 2/7/2021, Raymond Hettinger wrote:

>Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
>
>As Dennis says, this is an intentional behavior and will help you avoid bugs.
>
>----------
>nosy: +rhettinger
>resolution:  -> not a bug
>stage:  -> resolved
>status: open -> closed
>
>_______________________________________
>Python tracker <report at bugs.python.org>
><https://bugs.python.org/issue43151>
>_______________________________________

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43151>
_______________________________________


More information about the Python-bugs-list mailing list