We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 812ad85 commit 960cbc5Copy full SHA for 960cbc5
smmap/test/test_tutorial.py
@@ -41,12 +41,6 @@ def test_example(self):
41
c.buffer()[1:10] # first 9 bytes
42
c.buffer()[c.size() - 1] # last byte
43
44
- # its recommended not to create big slices when feeding the buffer
45
- # into consumers (e.g. struct or zlib).
46
- # Instead, either give the buffer directly, or use pythons buffer command.
47
- from smmap.util import buffer
48
- buffer(c.buffer(), 1, 9) # first 9 bytes without copying them
49
-
50
# you can query absolute offsets, and check whether an offset is included
51
# in the cursor's data.
52
assert c.ofs_begin() < c.ofs_end()
0 commit comments