Re: Direct memory access

2007-03-07 Thread Collin Stocks
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

Re: Direct memory access

2007-03-07 Thread Collin Stocks
Thanks. I didn't know about ctypes. -- http://mail.python.org/mailman/listinfo/python-list

Re: Direct memory access

2007-03-07 Thread Travis Oliphant
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

Direct memory access

2007-03-06 Thread Collin Stocks
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)