MCPcopy Create free account
hub / github.com/IncideDigital/Mistica / __getitem__

Method __getitem__

utils/bitstring.py:901–943  ·  view source on GitHub ↗

Return a new bitstring representing a slice of the current bitstring. Indices are in units of the step parameter (default 1 bit). Stepping is used to specify the number of bits in each item. >>> print BitArray('0b00110')[1:4] '0b011' >>> print BitArray('0x00

(self, key)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

__setitem__Method · 0.95
__getitem__Method · 0.45

Calls 4

_getbinMethod · 0.95
_sliceMethod · 0.95
_setbin_unsafeMethod · 0.80
getbitMethod · 0.80

Tested by

no test coverage detected