[issue25856] The __module__ attribute of non-heap classes is not interned
Benjamin Peterson
report at bugs.python.org
Thu Sep 8 17:42:50 EDT 2016
Benjamin Peterson added the comment:
I'm not too worried about slowing down __module__ especially since it's
not any slower for heap types or types in builtins.
On Thu, Sep 8, 2016, at 14:39, Serhiy Storchaka wrote:
>
> Serhiy Storchaka added the comment:
>
> This is what my first path does. But this slows down retrieving the
> __module__ attribute (from 0.2 usec to 0.4 usec on my computer). Maybe I
> haven't bother.
>
> Interning __name__ and __qualname__ is less important, because different
> functions and classes usually have different names.
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue25856>
> _______________________________________
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25856>
_______________________________________
More information about the Python-bugs-list
mailing list