[issue32894] AST unparsing of infinity numbers

2020-04-13 Thread STINNER Victor
STINNER Victor added the comment: It seems like the fix works as expected: >>> from __future__ import annotations >>> def f(x: A[1e1000, 1e1000j]): pass ... >>> f.__annotations__ {'x': 'A[1e309, 1e309j]'} >>> A=list >>> eval(f.__annotations__['x']) list[inf, infj] -- resolution:

[issue32894] AST unparsing of infinity numbers

2020-04-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 258f5179f9494189e6a80311c86981d2a88ba9d6 by Batuhan Taşkaya in branch 'master': bpo-32894: Support unparsing of infinity numbers in ast_unparser.c (GH-17426) https://github.com/python/cpython/commit/258f5179f9494189e6a80311c86981d2a88ba9d6

[issue32894] AST unparsing of infinity numbers

2019-12-01 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16905 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17426 ___ Python tracker ___

[issue32894] AST unparsing of infinity numbers

2019-12-01 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32894] AST unparsing of infinity numbers

2019-12-01 Thread Batuhan
Change by Batuhan : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32894] AST unparsing of infinity numbers

2018-11-21 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32894] AST unparsing of infinity numbers

2018-11-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32894] AST unparsing of infinity numbers

2018-02-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : AST unparsing of infinity numbers produces a string which can't be evaluated because inf and infj are not builtins. >>> from __future__ import annotations >>> def f(x: A[1e1000, 1e1000j]): pass ... >>> f.__annotations__ {'x':