Yury Selivanov added the comment: Because the following works without a problem:
class F: __slots__ = ('__name__', ) f = F() f.__name__ = 'aaaa' This bug with __qualname__ is why _GeneratorWrapper in types.py doesn't have __slots__. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24329> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com