Skip to content

Commit 8fe6c41

Browse files
committed
+ ast
1 parent 27b45b9 commit 8fe6c41

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

peps/pep-0812.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ constructor.
369369

370370
The :mod:`marshal` module will be adjusted to support new type.
371371

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+
372376

373377
New C API
374378
---------

0 commit comments

Comments
 (0)