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 <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