Message225674
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 |
|
Date |
User |
Action |
Args |
2014-08-22 14:58:41 | eryksun | set | recipients:
+ eryksun, yaubi, Claudiu.Popa, Florian.Dold |
2014-08-22 14:58:41 | eryksun | set | messageid: <1408719521.38.0.681367349002.issue22098@psf.upfronthosting.co.za> |
2014-08-22 14:58:41 | eryksun | link | issue22098 messages |
2014-08-22 14:58:41 | eryksun | create | |
|