Serhiy Storchaka added the comment: Actually this is not specific to itertools. Every non-heap class not from the builtins module is affected.
Proposed patch just interns the __module__ value. The patch also cleans up the code. ---------- keywords: +patch stage: -> patch review title: The __module__ attribute of itertools members is not interned -> The __module__ attribute of non-heap classes is not interned Added file: http://bugs.python.org/file41356/intern___module__.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25856> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com