[Tutor] Working with memory in Python?

Magnus Lycka magnus@thinkware.se
Fri Dec 6 06:34:02 2002


At 17:32 2002-12-05 -0500, Jmllr891@cs.com wrote:
>I know that most of the time it requires a low level language (such as C) 
>to work with memory, but is it at all possible to work with memory with Python?
>
>An example of what I am trying to find out would be finding the address of 
>a particular file on a system and then being able to modify/overwrite the 
>memory that that particular file is using.

Are you talking about primary memory (RAM) or secondary memory
(disk) here?

What are you trying to achieve?

If you are trying to make sure that some data is safely
erased, the OS can certainly play tricks with you. I'm
pretty sure there is only one OS independent way of ensuring
that sensitive data is properly removed from a computer.
But it's a pity to destroy fine hardware like that...


-- 
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/  mailto:magnus@thinkware.se