Ivan Levkivskyi added the comment: Here is a new patch that does not cause refleaks, I just replaced empty __slots__ with a __setattr__: it looks like __slots__ are not needed here to save memory (there is only a singleton instance), they were used just to create an immutable object.
---------- Added file: http://bugs.python.org/file45471/operator_subscript_norefleak.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24379> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com