Skip to content

Commit

Permalink
fix #601: avoid abort trap on CFunctionType
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckerns committed Jul 1, 2023
1 parent c172f59 commit d031d06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dill/_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ class _Struct(ctypes.Structure):
z = a if IS_PYPY else x
z['FieldType'] = _field = _Struct._field
z['CFUNCTYPEType'] = _cfunc = ctypes.CFUNCTYPE(ctypes.c_char)
x['CFunctionType'] = _cfunc(str)
if sys.hexversion < 0x30c00b3:
x['CFunctionType'] = _cfunc(str)
del z
# numeric and mathematical types (CH 9)
a['MethodCallerType'] = operator.methodcaller('mro') # 2.6
Expand Down

0 comments on commit d031d06

Please sign in to comment.