I don't know if this is possible but I'm trying to open an object from another script by i'ts place on the memory
This is my first script:
from time import sleep
myobj = 'Hi'
# i'm aware that this somehow is the position of the object on memory
myid = id(myobj)
print(myid)
# output: 140196737647120
sleep(3600)
how i could try to open it from a non related script? I tried with:
from ctypes import cast, py_object
jc = cast( 140196737647120 , py_object).value
# output: Segmentation fault (core dumped)
Also if there is some other easier way please suggest