block devices

Diez B. Roggisch deets at nospam.web.de
Tue Oct 17 16:24:28 EDT 2006


rick schrieb:
> What's the best way to read a byte of data directly from a block device 
> (a scsi hard drive) on Linux using Python?

Reading it? Using read?

f = open("/dev/foo")
f.read(1)

Diez



More information about the Python-list mailing list