This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients bgamari, ned.deily
Date 2010-11-21.21:19:46
SpamBayes Score 0.00077309704
Marked as misclassified No
Message-id <1290374388.97.0.22220403683.issue10345@psf.upfronthosting.co.za>
In-reply-to
Content
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 bytearray 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
History
Date User Action Args
2010-11-21 21:19:49ned.deilysetrecipients: + ned.deily, bgamari
2010-11-21 21:19:48ned.deilysetmessageid: <1290374388.97.0.22220403683.issue10345@psf.upfronthosting.co.za>
2010-11-21 21:19:46ned.deilylinkissue10345 messages
2010-11-21 21:19:46ned.deilycreate