[issue6493] Can not set value for structure members larger than 32 bits
higstar
report at bugs.python.org
Thu Jul 16 03:11:59 CEST 2009
New submission from higstar <adrian at higstar.com>:
Added a test to test_bitfields.py:
def test_uint32(self):
class X(Structure):
_fields_ = [("a", c_uint32, 32)]
x = X()
x.a = 10
self.failUnlessEqual(x.a, 10)
Run in Python 2.5.2 and 2.6.2:
======================================================================
FAIL: test_uint32 (__main__.BitFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_bitfields.py", line 73, in test_uint32
self.failUnlessEqual(x.a, 10)
AssertionError: 0L != 10
----------
assignee: theller
components: ctypes
messages: 90549
nosy: higstar, theller
severity: normal
status: open
title: Can not set value for structure members larger than 32 bits
versions: Python 2.5, Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6493>
_______________________________________
More information about the Python-bugs-list
mailing list