[New-bugs-announce] [issue35798] duplicate SyntaxWarning: "is" with a literal
Jakub Wilk
report at bugs.python.org
Mon Jan 21 10:13:45 EST 2019
New submission from Jakub Wilk <jwilk at jwilk.net>:
$ python3.8 -c 'if object() is 42: pass'
<string>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
<string>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
I'd like only one copy of this warning, not two.
Tested with git master (e9b185f2a493cc54f0d49eac44bf21e8d7de2990).
----------
components: Interpreter Core
messages: 334143
nosy: jwilk, serhiy.storchaka
priority: normal
severity: normal
status: open
title: duplicate SyntaxWarning: "is" with a literal
type: behavior
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35798>
_______________________________________
More information about the New-bugs-announce
mailing list