[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__
Florian Dold
report at bugs.python.org
Mon Jul 28 23:58:29 CEST 2014
New submission from Florian Dold:
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.
----------
components: ctypes
files: bug-ctypes-slots.py
messages: 224195
nosy: Florian.Dold
priority: normal
severity: normal
status: open
title: Behavior of Structure inconsistent with BigEndianStructure when using __slots__
versions: Python 3.4
Added file: http://bugs.python.org/file36146/bug-ctypes-slots.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22098>
_______________________________________
More information about the Python-bugs-list
mailing list