Amaury Forgeot d'Arc added the comment: OTOH, __slots__ also allows a single string, but it is silently converted to a 1-tuple:
class C: __slots__ = 'abc' assert 'abc' in C.__dict__ ---------- nosy: +amaury.forgeotdarc status: pending -> open _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16566> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com