A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-February/143191.html below:

[Python-Dev] Issue #26204: compiler now emits a SyntaxWarning on constant statement

[Python-Dev] Issue #26204: compiler now emits a SyntaxWarning on constant statement [Python-Dev] Issue #26204: compiler now emits a SyntaxWarning on constant statementVictor Stinner victor.stinner at gmail.com
Mon Feb 8 16:51:50 EST 2016
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?

Victor
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4