Skip to content

Eclips4/mutable-tuple

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mutable_tuple

test

Mutates your tuples.

Please, don't use this!

Usage

>>> import mutable_tuple

>>> x = (1, 2)
>>> mutable_tuple.set_item(x, 0, 5)

>>> x
(5, 2)

😱

Docs about what is going on: PyTuple_SET_ITEM C-API

Install

pip install git+https://github.com/sobolevn/mutable-tuple.git

License

WTFPL

About

Demo for my article, do not use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 50.4%
  • Python 49.6%