eryksun added the comment:

Since BigEndianStructure doesn't explicitly define the instance slots, they get 
the default slots for __dict__ and __weakref__. It wouldn't make sense to 
exclude these slots from instances of the Point2 subclass, so there's no 
mechanism for that. You can only add slots.

That said, the BigEndianStructure and LittleEndianStructure subclasses should 
define __slots__ = (). That removes the inconsistency.

http://hg.python.org/cpython/file/c0e311e010fc/Lib/ctypes/_endian.py#l46

----------
nosy: +eryksun

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22098>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to