We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27b45b9 commit 8fe6c41Copy full SHA for 8fe6c41
1 file changed
peps/pep-0812.rst
@@ -369,6 +369,10 @@ constructor.
369
370
The :mod:`marshal` module will be adjusted to support new type.
371
372
+The :func:`ast.literal_eval` and :func:`compile` will reject non-imaginary
373
+complex values for :class:`ast.Constant` node type, e.g.
374
+``ast.Constant(value=1+2j)`` (now permitted).
375
+
376
377
New C API
378
---------
0 commit comments