/opt/imh-python/lib/python3.9/site-packages/zmq/utils
NameSizeModeActions
__pycache__/-0755rm
buffers.pxd98190644editdlrm
compiler.json2950644editdlrm
config.json2650644editdlrm
constant_names.py113940644editdlrm
garbage.py59350644editdlrm
getpid_compat.h1030644editdlrm
interop.py7090644editdlrm
ipcmaxlen.h4540644editdlrm
jsonapi.py13930644editdlrm
monitor.py20880644editdlrm
mutex.h16250644editdlrm
pyversion_compat.h13240644editdlrm
sixcerpt.py18860644editdlrm
strtypes.py12020644editdlrm
win32.py51240644editdlrm
z85.py20000644editdlrm
zmq_compat.h31770644editdlrm
zmq_constants.h186950644editdlrm
__init__.py00644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/zmq/utils/interop.py (709B)
"""Utils for interoperability with other libraries. Just CFFI pointer casting for now. """ # Copyright (C) PyZMQ Developers # Distributed under the terms of the Modified BSD License. try: long except NameError: long = int # Python 3 def cast_int_addr(n): """Cast an address to a Python int This could be a Python integer or a CFFI pointer """ if isinstance(n, (int, long)): return n try: import cffi except ImportError: pass else: # from pyzmq, this is an FFI void * ffi = cffi.FFI() if isinstance(n, ffi.CData): return int(ffi.cast("size_t", n)) raise ValueError("Cannot cast %r to int" % n)