[pyar] Leer direccion de memoria específica

John Rowland Lenton john.lenton en canonical.com
Lun Sep 27 17:53:20 ART 2010


On Mon, Sep 27, 2010 at 05:22:56PM -0300, Gabriel wrote:
> ¿Es posible leer una direccion de memoria específica con Python?

>>> f = file('/dev/mem')
>>> f.seek(12345)
>>> f.read(1)
'\x00'


PS no lo hagas!
------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20100927/939122b9/attachment.sig>


More information about the pyar mailing list