Raymond Hettinger <rhettin...@users.sourceforge.net> added the comment:
For the Fractions issue, consider adding an empty __slots__ declaration to every level in numbers.py. That will preclude unintended dictionary creation for anything inheriting from the numbers abcs. We should also be an issue for the other abcs. The collections ABCs are less affected because they are not as granular as number objects. So their overall memory footprint only grows by a small percentage from the inclusion of an instance dictionary. _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4998> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com