No project description provided
Project description
mutuple
Replace items in Python's "immutable" tuples.
Why?
yolo
How?
We use Rust's PyO3 crate to manipulate tuples directly using the Stable CPython API. Editing tuples can lead to issues but works in practice for limited use cases.
Usage
import mutuple
def test_mutable_tuple():
"""mutuple tuple demo"""
value = ('read-only', 'tuple')
mutuple.setitem(value, 0, 'mutable')
assert value == ('mutable', 'tuple')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mutuple-1.0.0.tar.gz
(6.2 kB
view hashes)
Built Distributions
Close
Hashes for mutuple-1.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8f629e31530c1c088bb50563d69af67f8fc6a0c3649f46f3ea88f3a4e9e7d22 |
|
MD5 | cb7de1da466a33283c38ac55407f3410 |
|
BLAKE2b-256 | 7a1c2759dc1c1810de5e0b2dae370dbfa5e4516dc13f2e74f428c0b05fcd9640 |
Close
Hashes for mutuple-1.0.0-cp37-abi3-macosx_14_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de677c84eae18824bf6db689683e51cb12343eee1813f349ce102d1bceb43c06 |
|
MD5 | 8e2c19b0e63115844a15a9f3e48cf959 |
|
BLAKE2b-256 | 6ccf0309a855f6659d73062cef08974072e5d1821eac1d2e6637845e3599fbb3 |