You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/array.rst
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,6 +133,7 @@ Array
133
133
134
134
* The ``'b'`` and ``'B'`` type codes need to be preceded by an endianness character even though it makes no difference which one you use as they are only 1 byte long.
135
135
136
+
----
136
137
137
138
Methods
138
139
-------
@@ -328,6 +329,7 @@ Methods
328
329
329
330
Each packed element of the Array is converted to an ordinary Python object such as a ``float`` or an ``int`` depending on the Array's format, and returned in a Python list.
Copy file name to clipboardExpand all lines: doc/bitarray.rst
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ BitArray
10
10
11
11
A :class:`BitArray` is a mutable :class:`Bits`, and so the one thing all of the methods listed here have in common is that they can modify the contents of the bitstring.
12
12
13
+
----
14
+
13
15
Methods
14
16
-------
15
17
@@ -181,6 +183,7 @@ Methods
181
183
>>> s.bin
182
184
'1010101010101010'
183
185
186
+
----
184
187
185
188
Properties
186
189
----------
@@ -214,7 +217,7 @@ When used as a setter without a new length the value must fit into the current
214
217
Other types also have restrictions on their lengths, and using an invalid length will raise a :exc:`CreationError`.
215
218
For example trying to create a 20 bit floating point number or a two bit bool will raise this exception.
Copy file name to clipboardExpand all lines: doc/functions.rst
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,7 @@ Finally it is also possible just to use a keyword as a token::
86
86
87
87
s = bitstring.pack('hello, world', world='0x123', hello='0b110')
88
88
89
+
----
89
90
90
91
Options
91
92
-------
@@ -227,6 +228,7 @@ See https://no-color.org for more information.
227
228
228
229
The terminal colours can also be turned off by setting ``bitstring.options.no_color`` to ``True``.
229
230
231
+
----
230
232
231
233
Command Line Usage
232
234
------------------
@@ -247,6 +249,7 @@ The bitstring module can be called from the command line to perform simple opera
247
249
248
250
Command-line parameters are concatenated and a bitstring created from them. If the final parameter is either an interpretation string or ends with a ``.`` followed by an interpretation string then that interpretation of the bitstring will be used when printing it. If no interpretation is given then the bitstring is just printed.
Copy file name to clipboardExpand all lines: doc/interpretation.rst
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ For example if you have initialised a bitstring from a 10 GiB file object and as
16
16
17
17
If you're in an interactive session then the pretty-print method :meth:`~Bits.pp` can be useful as it will only convert the bitstring one chunk at a time for display.
Copy file name to clipboardExpand all lines: doc/introduction.rst
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,11 +33,17 @@ To summarise when to use each class:
33
33
34
34
The :class:`Bits` class is the base class of the other three class. This means that ``isinstance(s, Bits)`` will be true if ``s`` is an instance of any of the four classes.
0 commit comments