[issue31333] Implement ABCMeta in C

Ivan Levkivskyi report at bugs.python.org
Mon Sep 4 14:56:11 EDT 2017


Ivan Levkivskyi added the comment:

Eric,

> the only ABCs in importlib are in importlib.abc (and used by importlib.util).
> This does not impact interpreter startup.

Hm, indeed, but I see that module 'abc' is in 'sys.modules', probably it is then only used by 'collections.abc'/'_collections_abc'. This means that the influence of 'ABCMeta' on interpreter start-up time will be smaller than I thought. But still start-up times for projects that actively use ABCs will be influenced by 'ABCMeta'.

But what do you think about making private ABC caches read-only attributes? (They are not documented)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31333>
_______________________________________


More information about the Python-bugs-list mailing list