Serhiy Storchaka added the comment:

Approximate counts.

C code:
ob_type->tp_name        161
Py_TYPE(...)->tp_name   285

Python code:
__class__.__name__      224
__class__.__qualname__   23
type(...).__name__      112
type(...).__qualname__    5

Is it worth changing about 800 places in CPython code? Not counting third-party 
code.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to