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 Florian.Dold
Recipients Florian.Dold
Date 2014-07-28.21:58:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406584709.24.0.956833774104.issue22098@psf.upfronthosting.co.za>
In-reply-to
Content
Habimg __slots__ = [] on a class inheriting from ctypes.Structure prevents undefined fields from being set, as expected.

When inheriting from ctypes.BigEndianStructure, however, it is possible to set undefined fields.

See the attached file for small test case for the behavior.
History
Date User Action Args
2014-07-28 21:58:29Florian.Doldsetrecipients: + Florian.Dold
2014-07-28 21:58:29Florian.Doldsetmessageid: <1406584709.24.0.956833774104.issue22098@psf.upfronthosting.co.za>
2014-07-28 21:58:29Florian.Doldlinkissue22098 messages
2014-07-28 21:58:29Florian.Doldcreate