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 mwh
Recipients
Date 2002-05-15.15:38:14
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=6656

grahamh: I think Martin understood you fine.

Remember that arrays are mutable, whereas strings are not.

So the idea would be that you'd write

buf = array.array('c', '\000'*256)
ret = fcntl.ioctl(fd, IOCTL_NUMBER, buf)

then the first "ret" bytes of "buf" would be valid.

However this possibly breaks backwards compatibility, as you
can already pass arrays into the ioctl function and they are
not modified.
History
Date User Action Args
2007-08-23 14:01:21adminlinkissue555817 messages
2007-08-23 14:01:21admincreate