We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2cec7bf + 494b836 commit 517d54bCopy full SHA for 517d54b
ctypeslib/data/structure_type.tpl
@@ -17,11 +17,11 @@ class AsDictMixin:
17
type_ = type(value)
18
if hasattr(value, "_length_") and hasattr(value, "_type_"):
19
# array
20
- if not hasattr(type_, "as_dict"):
21
- value = [v for v in value]
22
- else:
23
- type_ = type_._type_
+ type_ = type_._type_
+ if hasattr(type_, 'as_dict'):
24
value = [type_.as_dict(v) for v in value]
+ else:
+ value = [i for i in value]
25
elif hasattr(value, "contents") and hasattr(value, "_type_"):
26
# pointer
27
try:
0 commit comments