[issue30505] Performance of typing._ProtocolMeta._get_protocol_attrs and isinstance

Ivan Levkivskyi report at bugs.python.org
Fri Jun 2 13:44:59 EDT 2017


Ivan Levkivskyi added the comment:

Thanks for reporting!

The runtime implementation of protocol classes will be thoroughly reworked as a part of PEP 544, see also https://github.com/python/typing/pull/417 for a proof of concept runtime implementation.

Also, there is another ongoing discussion https://github.com/python/typing/issues/432 about a global refactoring of typing module that will significantly improve performance.

Therefore, I would wait with any large PRs until these two stories are settled. If you still want to propose a small PR, you can do this at the upstream typing repo https://github.com/python/typing

----------
nosy: +levkivskyi

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


More information about the Python-bugs-list mailing list