Files
cpython/Python
Victor Stinner a2724095cd compiler now ignores constant statements
The compile ignores constant statements and emit a SyntaxWarning warning.

Don't emit the warning for string statement because triple quoted string is a
common syntax for multiline comments.

Don't emit the warning on ellipis neither: 'def f(): ...' is a legit syntax for
abstract functions.

Changes:

* test_ast: ignore SyntaxWarning when compiling test statements. Modify
  test_load_const() to use assignment expressions rather than constant
  expression.
* test_code: add more kinds of constant statements, ignore SyntaxWarning when
  testing that the compiler removes constant statements.
* test_grammar: ignore SyntaxWarning on the statement "1"
2016-02-08 18:17:58 +01:00
..
2015-08-24 20:23:27 -07:00
2016-02-05 18:26:20 -05:00
2016-01-20 11:12:38 +01:00
2016-01-26 00:40:57 +01:00
2016-01-22 14:09:55 +01:00
2016-01-27 00:37:59 +01:00
2015-11-10 12:11:52 +01:00
2016-01-26 00:40:57 +01:00
2016-01-20 11:19:46 +01:00

Miscellaneous source files for the main Python shared library