Nick Coghlan added the comment:
The concern with using the "generate a private module that can be cached"
approach is that it doesn't generalise well - any time you want to
micro-optimise a new module that way, you have to add a custom Makefile rule.
By contrast, Argument Clinic is a general purpose tool - adopting it for
micro-optimisation in another file would just be a matter of adding that file
to the list of files that trigger a clinic run. functools.py would be somewhat
notable as the first Python file we do that for, but it isn't a novel concept
That leads into my main comment on the AC patch: the files that are explicitly
listed as triggering a new clinic run should be factored out into a named
variable and that list commented accordingly.
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list