741fc41f07
fix: Bits.__getitem__/__setitem__ ignore msb_last (rtl) as documented
...
list() always used MSB-first bit order regardless of the msb_last
constructor flag, so indexing/slicing on an instance built with
msb_last=True silently behaved identically to the default -- the
documented "swap bit order for indexing and slicing" never happened.
__setitem__ needed a matching fix: since __setvalue() always expects
a MSB-first list, a mutated LSB-first list from list() has to be
reversed back before being passed in.
Found while wiring bits.Bits into progpib's GPIB status-byte handling
(IEEE-488.2 bit numbering is LSB-first, e.g. RQS = bit 6).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-08-24 18:27:58 -05:00
49ef87f8c9
add bit_len to Bytes
2021-04-17 05:01:32 +00:00
ecc1b3bd8d
update source code location
2021-04-14 23:34:23 +00:00
55ae3544d5
add dev notes
2021-04-14 03:27:53 +00:00
de7c42fe8f
fix typo
2021-04-14 03:17:42 +00:00
34fa1b4502
update readme
2021-04-14 03:06:08 +00:00
90ff3fe077
update publish scripts
1.1.0
2021-04-14 02:57:57 +00:00
bafb8bc4b7
update package version
2021-04-14 02:07:16 +00:00
d111d402db
compatibility update for Python 3.6
2021-04-14 00:59:02 +00:00
c63d2dd4bb
added hex methods
2021-04-13 06:41:39 +00:00
66aa7ee915
tests passing; improve doc
2020-11-23 07:51:45 +00:00
97f7d58dd7
Improve doc; add Bit.set and unset methods
2020-11-22 06:30:47 +00:00
1226400c2d
scripts to publish to pypi
2020-11-19 04:56:22 +00:00
3ad4435b3f
update for pypi
2020-11-19 04:23:42 +00:00
1533f7ade6
remove egg-info from repo
2020-10-28 06:50:31 +00:00
42bb3f13e6
package
2020-10-28 06:45:49 +00:00
63929e6f5b
ref py-flags
2020-10-28 04:44:12 +00:00
e94a824fa0
refactor code structure. tests passing.
2020-10-28 03:20:38 +00:00
6e483cbd74
update version in setup.py
1.0.1
2020-10-21 05:40:33 +00:00
6e937879c2
tests passing
2020-10-21 05:34:06 +00:00
de72cfef04
fix test typos
2020-10-16 06:28:51 +00:00
1eba1c7196
add code documentation
2020-10-16 05:13:41 +00:00
535ef1d42b
workon Bytes
2020-10-15 04:07:34 +00:00
f5f6813326
more complex but easier to write tests
2020-10-14 07:55:47 +00:00
2dca413258
added some tests for Bytes
2020-10-13 07:14:40 +00:00
e8772e9931
update Bits; tests passing
2020-10-13 06:32:50 +00:00
37782f4b8b
add Bit object
2020-10-10 05:42:18 +00:00
b887264cbc
update tests; still fail
2020-10-07 04:29:55 +00:00
75429cfe4b
add gitignore and Makefile
2020-10-06 23:32:42 +00:00
f6d150545c
add more methods
2020-10-06 23:30:52 +00:00
691069b307
grammer [sic]
2020-10-04 18:16:35 +00:00
092e387337
implement repr dunder
2020-10-04 18:11:46 +00:00
9edeed7f5c
readme grammar
2020-10-04 01:39:16 +00:00
163fd5e290
initial commit
2020-10-04 01:35:46 +00:00