]> granicus.if.org Git - python/commit
bpo-31778: Make ast.literal_eval() more strict. (#4035)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 4 Jan 2018 09:15:39 +0000 (11:15 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2018 09:15:39 +0000 (11:15 +0200)
commitd8ac4d1d5ac256ebf3d8d38c226049abec82a2a0
treefd422f2f579ce4c8f2438ffe89b07bc76d48bf49
parentfbb490fd2f38bd817d99c20c05121ad0168a38ee
bpo-31778: Make ast.literal_eval() more strict. (#4035)

Addition and subtraction of arbitrary numbers no longer allowed.
Lib/ast.py
Lib/test/test_ast.py
Lib/test/test_inspect.py
Misc/NEWS.d/next/Library/2017-10-18-17-29-30.bpo-31778.B6vAkP.rst [new file with mode: 0644]