Author serhiy.storchaka
Recipients Mark.Shannon, corona10, jstasiak, methane, serhiy.storchaka, uriyyo
Date 2020-11-17.17:56:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
If you want to measure import time, use

  python -m timeit -s "from sys import modules; modules_copy = modules.copy()" "import black; modules.clear(); modules.update(modules_copy)"

But I would be surprised to see significant difference in this case.

What Mark means, measure the time of creation of nested function.

  python -m timeit "def f(a: int, b: str) -> None: pass"

And maybe test with different number of arguments if there is a difference.
Date User Action Args
2020-11-17 17:56:50serhiy.storchakasetrecipients: + serhiy.storchaka, methane, Mark.Shannon, jstasiak, corona10, uriyyo
2020-11-17 17:56:49serhiy.storchakasetmessageid: <>
2020-11-17 17:56:49serhiy.storchakalinkissue42202 messages
2020-11-17 17:56:49serhiy.storchakacreate