[Python-Dev] Issue #26204: compiler now emits a SyntaxWarning on constant statement
Yury Selivanov
yselivanov.ml at gmail.com
Mon Feb 8 17:43:25 EST 2016
More information about the Python-Dev mailing list
Mon Feb 8 17:43:25 EST 2016
- Previous message (by thread): [Python-Dev] Issue #26204: compiler now emits a SyntaxWarning on constant statement
- Next message (by thread): [Python-Dev] Issue #26204: compiler now emits a SyntaxWarning on constant statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2016-02-08 5:19 PM, Terry Reedy wrote: > On 2/8/2016 4:51 PM, Victor Stinner wrote: >> 2016-02-08 22:28 GMT+01:00 Alexander Walters <tritium-list at sdamon.com>: >>> What incantation do you need to do to make that behavior apparent? >> >> I didn't know. I just checked. It's assert used with a non-empty tuple: >> >>>>> assert ("tuple",) >> <stdin>:1: SyntaxWarning: assertion is always true, perhaps remove >> parentheses? > > I think this should be left to linters also. > I agree. I'd remove that warning. Yury
- Previous message (by thread): [Python-Dev] Issue #26204: compiler now emits a SyntaxWarning on constant statement
- Next message (by thread): [Python-Dev] Issue #26204: compiler now emits a SyntaxWarning on constant statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list