[issue32678] Lazy import ast in inspect

2018-01-26 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue32678] Lazy import ast in inspect

2018-01-26 Thread INADA Naoki
INADA Naoki added the comment: New changeset 37420deb80dcf0fc41a728838b0340b93ca01d90 by INADA Naoki in branch 'master': bpo-32678: inspect: Import ast lazily (GH-5344) https://github.com/python/cpython/commit/37420deb80dcf0fc41a728838b0340b93ca01d90 -- _

[issue32678] Lazy import ast in inspect

2018-01-26 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +5191 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32678] Lazy import ast in inspect

2018-01-26 Thread INADA Naoki
New submission from INADA Naoki : inspect imports ast but it's used only for creating signature. But asyncio uses inspect module for unwrap(), isgenerator(), etc... And ast module is relatively heavy for import. This is output of python -Ximporttime -c 'import asyncio': import time: 147