Skip to main content

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


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 details)

Uploaded Source

Built Distributions

mutuple-1.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (229.3 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

mutuple-1.0.0-cp37-abi3-macosx_14_0_universal2.whl (209.9 kB view details)

Uploaded CPython 3.7+ macOS 14.0+ universal2 (ARM64, x86-64)

File details

Details for the file mutuple-1.0.0.tar.gz.

File metadata

  • Download URL: mutuple-1.0.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for mutuple-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bd06df0030c961732965ea17330af9f89c9d8c0e7ca58a590fa99715132de861
MD5 f8577f373700753dc3efd7604c5bdbfb
BLAKE2b-256 cfb19dbcbf84e79ee73e9b7b7dd0beb5f39aa84c88edb0227429fb64258d2db9

See more details on using hashes here.

File details

Details for the file mutuple-1.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file mutuple-1.0.0-cp37-abi3-macosx_14_0_universal2.whl.

File metadata

File hashes

Hashes for mutuple-1.0.0-cp37-abi3-macosx_14_0_universal2.whl
Algorithm Hash digest
SHA256 de677c84eae18824bf6db689683e51cb12343eee1813f349ce102d1bceb43c06
MD5 8e2c19b0e63115844a15a9f3e48cf959
BLAKE2b-256 6ccf0309a855f6659d73062cef08974072e5d1821eac1d2e6637845e3599fbb3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page