immutables icon indicating copy to clipboard operation
immutables copied to clipboard

A high-performance immutable mapping type for Python.

Results 15 immutables issues
Sort by recently updated
recently updated
newest added

How feasible is it modifying `static MapObject * map_alloc(void)` (and the `...dealloc` functions) to use a custom allocator, if buffer parameter is passed to constructor, so a multiprocessing.shared_memory.SharedMemory().buf can be...

How about comparing performance to frozendict?

Support using `IMMUTABLES_EXT` environment variable to control whether the C extension is built explicitly. When set to a value other than 1, the extension built is disabled. This is helpful...

``` $ export CFLAGS='-Og -g -Wall' $ python3.13 setup.py build_ext -i running build_ext building 'immutables._map' extension creating build creating build/temp.linux-x86_64-cpython-313 creating build/temp.linux-x86_64-cpython-313/immutables x86_64-pc-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -Og -g -Wall -fPIC -DNDEBUG=1...

`_PyLong_Format` is in Python’s [internal, private API](https://devguide.python.org/developer-workflow/c-api/); [`PyNumber_ToBase`](https://docs.python.org/3/c-api/number.html#c.PyNumber_ToBase) belongs to the Stable API, and is a fairly thin wrapper around `_PyLong_Format` with a bit of extra error checking. Fixes #116.