Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

python310-cymem-2.0.8-1.5 RPM for x86_64

From OpenSuSE Tumbleweed for x86_64

Name: python310-cymem Distribution: openSUSE Tumbleweed
Version: 2.0.8 Vendor: openSUSE
Release: 1.5 Build date: Mon Sep 18 11:22:35 2023
Group: Unspecified Build host: reproducible
Size: 128781 Source RPM: python-cymem-2.0.8-1.5.src.rpm
Packager: https://bugs.opensuse.org
Url: https://github.com/explosion/cymem
Summary: Manage calls to calloc/free through Cython

cymem provides two small memory-management helpers for Cython. They make it
easy to tie memory to a Python object's life-cycle, so that the memory is freed
when the object is garbage collected.



The most useful is `cymem.Pool`, which acts as a thin wrapper around the calloc
function:

```python
from cymem.cymem cimport Pool
cdef Pool mem = Pool()
data1 = <int*>mem.alloc(10, sizeof(int))
data2 = <float*>mem.alloc(12, sizeof(float))
```

The `Pool` object saves the memory addresses internally, and frees them when the
object is garbage collected. Typically you'll attach the `Pool` to some cdef'd
class. This is particularly handy for deeply nested structs, which have
complicated initialization functions. Just pass the `Pool` object into the
initializer, and you don't have to worry about freeing your struct at all —
all of the calls to `Pool.alloc` will be automatically freed when the `Pool`
expires.

Provides

Requires

License

MIT

Changelog

* Mon Sep 18 2023 Dirk Müller <dmueller@suse.com>
  - update to 2.0.8:
    * Python 3.12 support
* Mon Aug 07 2023 Matej Cepl <mcepl@suse.com>
  - Clean up the SPEC file
* Mon May 22 2023 Greg Freemyer <Greg.Freemyer@gmail.com>
  - initial version v2.0.7

Files

/usr/lib64/python3.10/site-packages/cymem
/usr/lib64/python3.10/site-packages/cymem-2.0.8.dist-info
/usr/lib64/python3.10/site-packages/cymem-2.0.8.dist-info/INSTALLER
/usr/lib64/python3.10/site-packages/cymem-2.0.8.dist-info/LICENSE
/usr/lib64/python3.10/site-packages/cymem-2.0.8.dist-info/METADATA
/usr/lib64/python3.10/site-packages/cymem-2.0.8.dist-info/RECORD
/usr/lib64/python3.10/site-packages/cymem-2.0.8.dist-info/REQUESTED
/usr/lib64/python3.10/site-packages/cymem-2.0.8.dist-info/WHEEL
/usr/lib64/python3.10/site-packages/cymem-2.0.8.dist-info/top_level.txt
/usr/lib64/python3.10/site-packages/cymem/__init__.pxd
/usr/lib64/python3.10/site-packages/cymem/__init__.py
/usr/lib64/python3.10/site-packages/cymem/__pycache__
/usr/lib64/python3.10/site-packages/cymem/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cymem/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cymem/__pycache__/about.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cymem/__pycache__/about.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cymem/about.py
/usr/lib64/python3.10/site-packages/cymem/cymem.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/cymem/cymem.pxd
/usr/lib64/python3.10/site-packages/cymem/cymem.pyx
/usr/lib64/python3.10/site-packages/cymem/tests
/usr/lib64/python3.10/site-packages/cymem/tests/__init__.py
/usr/lib64/python3.10/site-packages/cymem/tests/__pycache__
/usr/lib64/python3.10/site-packages/cymem/tests/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cymem/tests/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cymem/tests/__pycache__/test_import.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cymem/tests/__pycache__/test_import.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cymem/tests/test_import.py
/usr/share/doc/packages/python310-cymem
/usr/share/doc/packages/python310-cymem/README.md
/usr/share/licenses/python310-cymem
/usr/share/licenses/python310-cymem/LICENSE


Generated by rpm2html 1.8.1

Fabrice Bellet, Sun Nov 17 00:04:04 2024