This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients alexandre.vassalotti, benjamin.peterson, pitrou, rhettinger, serhiy.storchaka
Date 2016-09-08.21:42:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473370967.1128543.720091273.279F71BF@webmail.messagingengine.com>
In-reply-to <1473370775.53.0.183402098667.issue25856@psf.upfronthosting.co.za>
Content
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@bugs.python.org>
> <http://bugs.python.org/issue25856>
> _______________________________________
History
Date User Action Args
2016-09-08 21:42:50benjamin.petersonsetrecipients: + benjamin.peterson, rhettinger, pitrou, alexandre.vassalotti, serhiy.storchaka
2016-09-08 21:42:50benjamin.petersonlinkissue25856 messages
2016-09-08 21:42:50benjamin.petersoncreate