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

Alexander Walters tritium-list at sdamon.com
Mon Feb 8 16:28:31 EST 2016


What incantation do you need to do to make that behavior apparent?

tritium at gesa:~$ python3.5 -W all
Python 3.5.1 (default, Dec 18 2015, 02:15:10)
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
Jedi is not installed, falling back to readline
 >>> assert True
 >>>


On 2/8/2016 16:23, Victor Stinner wrote:
>
>
> Le 8 févr. 2016 9:10 PM, "Alexander Walters" <tritium-list at sdamon.com 
> <mailto:tritium-list at sdamon.com>> a écrit :
> >
> > I am not keen on a SyntaxWarning.  Either something is python 
> syntax, or it is not.
>
> Oh I forgot to mention that Python already emits SyntaxWarning, on 
> "assert True" for example.
>
> Victor
>
>
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/tritium-list%40sdamon.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20160208/2867f9a6/attachment-0001.html>


More information about the Python-Dev mailing list