Skip to content

Commit

Permalink
CLibraryLoader on unix in 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckerns committed Jul 21, 2022
1 parent 863d73c commit 7489dd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dill/_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,11 @@ class _Struct(ctypes.Structure):
z['CFloatType'] = ctypes.c_float()
z['CDoubleType'] = ctypes.c_double()
z['CSizeTType'] = ctypes.c_size_t()
x['CLibraryLoaderType'] = ctypes.cdll
a['StructureType'] = _Struct
z = (sys.platform[:3] == 'win' or sys.platform[:6] == 'darwin') # non-'nux
z = a if (sys.hexversion >= 0x30b00b3 and not z) else x
z['CLibraryLoaderType'] = ctypes.cdll
del z
a['StructureType'] = _Struct
# if not IS_PYPY:
# a['BigEndianStructureType'] = ctypes.BigEndianStructure()
#NOTE: also LittleEndianStructureType and UnionType... abstract classes
Expand Down

0 comments on commit 7489dd3

Please sign in to comment.