[issue6735] restype pointer to Structure subclass never initialized

dontbugme report at bugs.python.org
Wed Aug 19 20:59:18 CEST 2009


New submission from dontbugme <pythonbugsbugmenot at spamavert.com>:

So, say I'm sub-classing ctypes.Structure with a class: MyClass.

I define __init__() in MyClass..

If I explicitly instantiate MyClass(), then the __init__() is properly
executed as expected.

But say I have a CFUNCTYPE where I set it's restype member to a POINTER
to MyClass.. A python MyClass object is obviously instantiated at one
point in time, but it's __init__ is never called. Seems odd to me?

----------
assignee: theller
components: ctypes
messages: 91736
nosy: dontbugme, theller
severity: normal
status: open
title: restype pointer to Structure subclass never initialized
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6735>
_______________________________________


More information about the Python-bugs-list mailing list