Methods to modify python immutable python objects inplace using ctypes.
Experimental.]
Warning - Do not use these in your code unless you are very, very sure what you are doing and have very good reasons.
Multiple completely unrelated variables in a program might reference the same tuple / string / float etc. if they are the same value.
Changing something inplace may cause unexpected variable value changes, which can break code, cause segfaults, etc.
Answer by Michael Lipp
Question by Abdul Niyas P M
python final_functions.py
(1, 2, 3) 140044418733632
(1, 'hello', 3) 140044418733632 (1, 'hello', 3) (1, 2, 3)
very cool python code 140044418733632
very cool ctype stuff 140044418733632 very cool ctype stuff a very cool python code
0.1 0.1 0.6 1.6