File tree 14 files changed +2025
-6
lines changed
14 files changed +2025
-6
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ exclude_lines =
21
21
# Don't complain if tests don't hit defensive assertion code:
22
22
raise AssertionError
23
23
raise NotImplementedError
24
+ @pytest\.mark\.skip
24
25
25
26
# Don't complain if non-runnable code isn't run:
26
27
if 0:
Original file line number Diff line number Diff line change @@ -19,4 +19,10 @@ include pyproject.toml
19
19
include setup.cfg
20
20
include tox.ini
21
21
22
+ exclude build
23
+ exclude dist
24
+ exclude htmlcov
25
+ exclude .tox
26
+ exclude .pytest_cache
27
+
22
28
global-exclude *.py[cod] __pycache__ *.so *.dylib
Original file line number Diff line number Diff line change 1
- bytesparse.base
1
+ bytesparse.base
2
2
===============
3
3
4
4
.. automodule :: bytesparse.base
Original file line number Diff line number Diff line change 1
- bytesparse.inplace.Memory
1
+ bytesparse.inplace.Memory
2
2
=========================
3
3
4
4
.. currentmodule :: bytesparse.inplace
Original file line number Diff line number Diff line change 1
- bytesparse.inplace.bytesparse
1
+ bytesparse.inplace.bytesparse
2
2
=============================
3
3
4
4
.. currentmodule :: bytesparse.inplace
Original file line number Diff line number Diff line change
1
+ bytesparse.io.MemoryIO
2
+ ======================
3
+
4
+ .. currentmodule :: bytesparse.io
5
+
6
+ .. autoclass :: MemoryIO
7
+ :members:
8
+ :inherited-members:
9
+ :private-members:
10
+ :special-members:
11
+
12
+
13
+
14
+ .. rubric :: Methods
15
+
16
+ .. autosummary ::
17
+ :nosignatures:
18
+
19
+ ~MemoryIO.__init__
20
+ ~MemoryIO.close
21
+ ~MemoryIO.detach
22
+ ~MemoryIO.fileno
23
+ ~MemoryIO.flush
24
+ ~MemoryIO.getbuffer
25
+ ~MemoryIO.getvalue
26
+ ~MemoryIO.isatty
27
+ ~MemoryIO.peek
28
+ ~MemoryIO.read
29
+ ~MemoryIO.read1
30
+ ~MemoryIO.readable
31
+ ~MemoryIO.readinto
32
+ ~MemoryIO.readinto1
33
+ ~MemoryIO.readline
34
+ ~MemoryIO.readlines
35
+ ~MemoryIO.seek
36
+ ~MemoryIO.seekable
37
+ ~MemoryIO.skip_data
38
+ ~MemoryIO.skip_hole
39
+ ~MemoryIO.tell
40
+ ~MemoryIO.truncate
41
+ ~MemoryIO.writable
42
+ ~MemoryIO.write
43
+ ~MemoryIO.writelines
44
+
45
+
46
+
47
+
48
+
49
+ .. rubric :: Attributes
50
+
51
+ .. autosummary ::
52
+
53
+ ~MemoryIO.closed
54
+ ~MemoryIO.memory
55
+
56
+
Original file line number Diff line number Diff line change
1
+ bytesparse.io
2
+ =============
3
+
4
+ .. automodule :: bytesparse.io
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+ .. rubric :: Classes
17
+
18
+ .. autosummary ::
19
+ :toctree:
20
+ :template: custom-class-template.rst
21
+ :nosignatures:
22
+
23
+ MemoryIO
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
Original file line number Diff line number Diff line change 28
28
29
29
bytesparse.base
30
30
bytesparse.inplace
31
+ bytesparse.io
31
32
Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ ignore =
5
5
*.so
6
6
7
7
[flake8]
8
- max-line-length = 120
9
8
exclude = */migrations/*
9
+ max-line-length = 120
10
+ per-file-ignores =
11
+ src/bytesparse/__init__.py: F401
10
12
11
13
[tool:pytest]
12
14
testpaths = tests
Original file line number Diff line number Diff line change 114
114
115
115
__version__ = '0.0.7'
116
116
117
- from .inplace import Memory # noqa F401
118
- from .inplace import bytesparse # noqa F401
117
+ from .inplace import Memory
118
+ from .inplace import bytesparse
119
+ from .io import MemoryIO
Original file line number Diff line number Diff line change @@ -1757,6 +1757,14 @@ def find(
1757
1757
1758
1758
Returns:
1759
1759
int: The index of the first item equal to `value`, or -1.
1760
+
1761
+ Warnings:
1762
+ If the memory allows negative addresses, :meth:`index` is more
1763
+ appropriate, because it raises :obj:`ValueError` if the item is
1764
+ not found.
1765
+
1766
+ See Also:
1767
+ :meth:`index`
1760
1768
"""
1761
1769
...
1762
1770
@@ -2411,6 +2419,9 @@ def index(
2411
2419
2412
2420
Raises:
2413
2421
:obj:`ValueError`: Item not found.
2422
+
2423
+ See Also:
2424
+ :meth:`find`
2414
2425
"""
2415
2426
...
2416
2427
@@ -2741,6 +2752,14 @@ def rfind(
2741
2752
2742
2753
Returns:
2743
2754
int: The index of the last item equal to `value`, or -1.
2755
+
2756
+ Warnings:
2757
+ If the memory allows negative addresses, :meth:`rindex` is more
2758
+ appropriate, because it raises :obj:`ValueError` if the item is
2759
+ not found.
2760
+
2761
+ See Also:
2762
+ :meth:`rindex`
2744
2763
"""
2745
2764
...
2746
2765
@@ -2770,6 +2789,14 @@ def rindex(
2770
2789
2771
2790
Raises:
2772
2791
:obj:`ValueError`: Item not found.
2792
+
2793
+ Warnings:
2794
+ If the memory allows negative addresses, :meth:`index` is more
2795
+ appropriate, because it raises :obj:`ValueError` if the item is
2796
+ not found.
2797
+
2798
+ See Also:
2799
+ :meth:`rfind`
2773
2800
"""
2774
2801
...
2775
2802
You can’t perform that action at this time.
0 commit comments