ctypes (useful on CPython
3.0 and 3.1, which is missing the
This library's version numbers follow the SemVer 2.0.0 specification.
pip install ctypes-callable
The use-case for using this module is if:
- You are using an early CPython 3 release missing
- You cannot upgrade to a newer CPython 3 for some reason.
- You want to use code which uses the
To do this, run this before any code that uses
example, usercustomize or sitecustomize might be good places):
import ctypes_callable import builtins builtins.callable = ctypes_callable.callable
This module will fail on
import on Jython, IronPython, PyPy,
MicroPython, PyPy.js, Brython, Transcrypt, and probably any other
implementation besides CPython, because it relies on accessing the
Python C API through