Skip to main content

Implements callable using ctypes (useful on CPython 3.0 and 3.1, which is missing the callable function).

Versioning

This library’s version numbers follow the SemVer 2.0.0 specification.

Installation

pip install ctypes-callable

Usage

The use-case for using this module is if:

  1. You are using an early CPython 3 release missing callable.

  2. You cannot upgrade to a newer CPython 3 for some reason.

  3. You want to use code which uses the callable builtin.

To do this, run this before any code that uses callable (for example, usercustomize or sitecustomize might be good places):

import ctypes_callable
import builtins
builtins.callable = ctypes_callable.callable

Portability

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 ctypes.

Release files for ctypes-callable 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ctypes-callable 1.0.4
File Size Uploaded
ctypes-callable-1.0.4.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ctypes-callable 1.0.4
File Interpreter ABI Platform
ctypes_callable-1.0.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 5.7 kB

Release files / ctypes-callable-1.0.4.tar.gz

Download URL ctypes-callable-1.0.4.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8f66049386ab80e50aeb804bf3c01245e0923fd7545c18f8ef2736b22365e6d8
BLAKE2b-256 checksum
How to use checksums
1b999643c2d964bb38ceade0f2e226e382e6adcdb26e169c5ff39da184c3d7df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.6

Release files / ctypes_callable-1.0.4-py2.py3-none-any.whl

Download URL ctypes_callable-1.0.4-py2.py3-none-any.whl
Size 2.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ce259c3a980e0cd772bbe74bfb70a005f83ab223f3fdad1a7ab0216bb44bf0ce
BLAKE2b-256 checksum
How to use checksums
6e1c24d90fb5f8ca010209dca0dc9e9fd818fb74f8056dd4c4559604e69ce17a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page