This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients Claudiu.Popa, Florian.Dold, eryksun, yaubi
Date 2014-08-22.14:58:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408719521.38.0.681367349002.issue22098@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-08-22 14:58:41eryksunsetrecipients: + eryksun, yaubi, Claudiu.Popa, Florian.Dold
2014-08-22 14:58:41eryksunsetmessageid: <1408719521.38.0.681367349002.issue22098@psf.upfronthosting.co.za>
2014-08-22 14:58:41eryksunlinkissue22098 messages
2014-08-22 14:58:41eryksuncreate