One last thing. Does anyone know how to take a python object and measure how
much space it is taking up in memory? I'm thinking probably not, but it's
worth asking.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks. I didn't know about ctypes.
--
http://mail.python.org/mailman/listinfo/python-list
Collin Stocks wrote:
> Does anyone know how to directly handle memory using python?
> I want to be able, for example, to copy the actual contents of a memory
> address, or set the actual contents of a memory address.
This kind of thing is generally not what Python is used for, so it's not
really
Does anyone know how to directly handle memory using python?
I want to be able, for example, to copy the actual contents of a memory
address, or set the actual contents of a memory address.
Here is an example of what I would like to be able to do:
num=12
addr=id(num)
contents=(hex(addr)).read(2)