IOError on file close
Michael S. Fischer
michael+usenet at dynamine.net
Fri Mar 29 16:31:29 EST 2002
Greetings,
Can anyone tell me why this is happening? (Python 2.1.2 on Debian Linux)
>>> fp = open("/proc/scsi/scsi","w")
>>> fp.write("scsi add-single-device 0 0 1 0\n")
>>> fp.close()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 38] Function not implemented
>>> fp
<closed file '/proc/scsi/scsi', mode 'w' at 0x8086530>
>>> fp.close()
>>>
Thanks,
--
Michael S. Fischer / michael at dynamine.net / +1 650-533-4684
Lead Hacketeer, Dynamine Consulting, Silicon Valley, CA
More information about the Python-list
mailing list