[issue31415] Add -X option to show import time

STINNER Victor report at bugs.python.org
Wed Nov 15 20:49:04 EST 2017


STINNER Victor <victor.stinner at gmail.com> added the comment:

FYI I'm working on the Py_Main() function in bpo-32030. My latest PR (PR 4412) moves the code to parse -X importtime and PYTHONPROFILEIMPORTTIME into Py_Main(), to group all functions parsing the command line arguments and environment variables.

With this change, the "importtime" option is now checked before the very first "Python" function call.

The new code doesn't use the sys module anymore to parse -X options, and so break the dependency between "importtime", the import machinery and the sys module.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31415>
_______________________________________


More information about the Python-bugs-list mailing list