homepage

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 techtonik
Recipients amaury.forgeotdarc, docs@python, techtonik
Date 2011年07月03日.12:24:43
SpamBayes Score 0.00032312004
Marked as misclassified No
Message-id <1309695884.1.0.382537823756.issue12476@psf.upfronthosting.co.za>
In-reply-to
Content
ISTM that this code works ok.
data = open('data.raw', 'rb').read()
ret = checkBuffer(data, len(data))
You need to make sure that checkBuffer doesn't try to modify memory though. For mutable memory blocks use create_string_buffer().
History
Date User Action Args
2011年07月03日 12:24:44techtoniksetrecipients: + techtonik, amaury.forgeotdarc, docs@python
2011年07月03日 12:24:44techtoniksetmessageid: <1309695884.1.0.382537823756.issue12476@psf.upfronthosting.co.za>
2011年07月03日 12:24:43techtoniklinkissue12476 messages
2011年07月03日 12:24:43techtonikcreate

AltStyle によって変換されたページ (->オリジナル) /