[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-02-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-02-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> pending ___ Python tracker ___

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e7a4bb554edb72fc6619d23241d59162d06f249a by Serhiy Storchaka in branch 'master': bpo-35798: Add test.support.check_syntax_warning(). (#11895) https://github.com/python/cpython/commit/e7a4bb554edb72fc6619d23241d59162d06f249a --

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-02-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +11922 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4583525835baf8fc7bd49a60725d1e8c49ef92b3 by Serhiy Storchaka in branch 'master': bpo-35798: Fix duplicate SyntaxWarning: "is" with a literal. (GH-11639) https://github.com/python/cpython/commit/4583525835baf8fc7bd49a60725d1e8c49ef92b3

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This warning is not special. I'll add a helper for testing that all syntax warnings are emitted only once later. -- ___ Python tracker

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that master on Windows (which requires " instead of ') > python -c "if object() is 42: pass" results in the doubled messsage, and that after applying PR 11639 and recompiling, there is only 1 message. We should test that exactly 1 warning is

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Kumar Akshay
Change by Kumar Akshay : -- pull_requests: +11419, 11420, 11421 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Kumar Akshay
Change by Kumar Akshay : -- pull_requests: +11419, 11420 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Kumar Akshay
Change by Kumar Akshay : -- pull_requests: +11419 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Kumar Akshay
Kumar Akshay added the comment: can I work on this? -- nosy: +kakshay ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +11410 stage: -> patch review ___ Python tracker ___ ___

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch, patch, patch pull_requests: +11410, 11411, 11412 stage: -> patch review ___ Python tracker ___

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch, patch pull_requests: +11410, 11411 stage: -> patch review ___ Python tracker ___

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread STINNER Victor
STINNER Victor added the comment: The warning has been introduced by bpo-34850: commit 3bcbedc9f1471d957a30a90f9d1251516b422416. -- nosy: +vstinner ___ Python tracker ___

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Jakub Wilk
New submission from Jakub Wilk : $ python3.8 -c 'if object() is 42: pass' :1: SyntaxWarning: "is" with a literal. Did you mean "=="? :1: SyntaxWarning: "is" with a literal. Did you mean "=="? I'd like only one copy of this warning, not two. Tested with git master