[issue1173475] __slots__ for subclasses of variable length types

Raymond Hettinger report at bugs.python.org
Wed Aug 11 21:16:37 CEST 2010


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

ISTM the space saving of value of __slots__ isn't typically needed in the context of variable length built-in types.

Guido has long regarded __slots__ as a confusing hack.  That should warn us away for extending its functionality.

Unless there are some compelling use cases, a simple and clean patch, and a clear one sentence explanation for users, I recommend this feature request be closed.

Michael, do you still want this?

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1173475>
_______________________________________


More information about the Python-bugs-list mailing list