Skip to main content

cymove

Build Status Build status

This package is DEPRECATED since std::move support is merged to Cython and available as of v0.29.17 (2020-04-26).

cymove is a header (pxd) only wrapper around C++11 std::move function. It allows using move semantics from cython code.

Installation

pip install cymove

Example Usage

example.pyx:

# distutils: language = c++

from libcpp.memory cimport make_shared, shared_ptr, nullptr
from cymove cimport cymove as move

cdef shared_ptr[int] ptr1, ptr2
cdef int* raw_ptr

ptr1 = make_shared[int](5)
raw_ptr = ptr1.get()
ptr2 = move(ptr1)

assert ptr2.get() == raw_ptr
assert ptr1 == nullptr

print("OK!")

Compile & run:

$ cythonize -3 -i example.pyx
$ python3 -c "import example"
OK!

Metadata

Release files for cymove 1.0.2

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

Source distribution (sdist)

Source distribution for cymove 1.0.2
File Size Uploaded
cymove-1.0.2.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cymove 1.0.2
File Interpreter ABI Platform
cymove-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / cymove-1.0.2.tar.gz

Download URL cymove-1.0.2.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
79c1350db2f1f92a459b87ee9072ec0790faab233bfaeb73bf78a5caadd5aaa8
BLAKE2b-256 checksum
How to use checksums
bb42064fb406ad6ac8e330f222a1d2341f3668b9b038ebbe3177cce017e1f035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / cymove-1.0.2-py3-none-any.whl

Download URL cymove-1.0.2-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc4bd59e0e6f99eb2fb9e6b443c84148061de4841fb6026ac724c9b9944a3056
BLAKE2b-256 checksum
How to use checksums
70f84c6d4fc2bb350e06daf99661968f8c85a9610c3d454a3dfeb2af4be5f462
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

1 release file

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