Diez B. Roggisch wrote:
> Reading it? Using read?
>
> f = open("/dev/foo")
> f.read(1)
>
> Diez
Wow, I didn't realize it was that simple. Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
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
--
http://mail.python.org/mailman/listinfo/python-list
What's the best way to read a byte of data directly from a block device
(a scsi hard drive) on Linux using Python?
--
http://mail.python.org/mailman/listinfo/python-list