Fix handling on negative numbers in ast.literal_eval().

This commit is contained in:
Raymond Hettinger 2010-10-08 00:47:45 +00:00
parent 4f3abb0f09
commit bc95973b51
3 changed files with 20 additions and 8 deletions

View file

@ -10,6 +10,10 @@ What's New in Python 3.2 Alpha 3?
Core and Builtins
-----------------
- ast.literal_eval() can now handle negative numbers. It is also a little
more liberal in what it accepts without compromising the safety of the
evaluation. For example, 3j+4 and 3+4+5 are both accepted.
- Issue #10006: type.__abstractmethods__ now raises an AttributeError. As a
result metaclasses can now be ABCs (see #9533).