[issue30152] Reduce the number of imports for argparse

Serhiy Storchaka report at bugs.python.org
Mon Sep 25 06:45:48 EDT 2017


Serhiy Storchaka added the comment:

functools.wraps() is used in more complex programs. The purpose of this PR is speeding up small scripts that just start, parse arguments, do its fast work (so fast as outputting a help or a version) and exit. Even collections is not used in a half of my scripts.

types needs functools only for coroutine(). Unlikely it is used in old style namespace packages.

----------

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


More information about the Python-bugs-list mailing list