How can I read (and enter into a new variable) data stored at a specific memory address?
For example, I know that:
<nfqueue.queue; proxy of <Swig Object of type 'queue *' at 0xabd2b00> >
And I want to have the data stored in 0xabd2b00 in a new variable so that I can work and use all the functionality of the object. Suppose I do not have access to the source variable that created this object.
UPDATE: This question has been answered, so I am updating my question. Suppose I have two python files: file1.py and file2.py
File1.py:
.... rest of the code ....
class new_thread(threading.Thread):
def __init__(self, obj):
self.obj = obj
threading.Thread.__init__(self)
def run(self):
str = 'python file2.py'
args = shlex.split(str3)
tmp = subprocess.Popen(args, stdout=open('/dev/null','w'), stderr=open('/dev/null', 'w'))
.... rest of the code ....
At some point, the new_thread thread is called.
File2.py:
kolejka = nfqueue.queue()
, . . - kolejka, file1.py , "" . kolejka , new_thread?
:
from file2 import kolejka
script ( ).