Ned Deily <n...@acm.org> added the comment:

If you call ioctl with the mutate_flag True, you need to pass "an object 
supporting the read-write buffer protocol" as the arg parameter for the results 
of ioctl to be returned in.  In your example, you pass a bytes object which is 
immutable.  Try using a bytesarray object instead, which is mutable, or, for 
instance, an array object as shown in the documentation.

http://docs.python.org/py3k/library/fcntl.html#fcntl.ioctl

http://docs.python.org/py3k/library/stdtypes.html#bytes-and-byte-array-methods

----------
nosy: +ned.deily
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10345>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to