Commit 33fac2b
authored
ByteArray access without item expansion in
Add `__getitem(self, value)` to `ByteArray` so we can access a Python `bytearray` element without expanding the full Python `bytearray` value into a Mathics3 ListExpression.
There might be other places in the Mathics3 where we might benefit from this. But this is a start.Part[] (#1509)1 parent e9114d4 commit 33fac2b
2 files changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1188 | 1188 | | |
1189 | 1189 | | |
1190 | 1190 | | |
1191 | | - | |
1192 | 1191 | | |
1193 | 1192 | | |
1194 | 1193 | | |
| |||
1200 | 1199 | | |
1201 | 1200 | | |
1202 | 1201 | | |
1203 | | - | |
| 1202 | + | |
1204 | 1203 | | |
1205 | 1204 | | |
1206 | 1205 | | |
| |||
1211 | 1210 | | |
1212 | 1211 | | |
1213 | 1212 | | |
1214 | | - | |
| 1213 | + | |
1215 | 1214 | | |
1216 | 1215 | | |
1217 | 1216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
678 | 684 | | |
679 | 685 | | |
680 | 686 | | |
| |||
701 | 707 | | |
702 | 708 | | |
703 | 709 | | |
704 | | - | |
| 710 | + | |
705 | 711 | | |
706 | | - | |
| 712 | + | |
707 | 713 | | |
708 | 714 | | |
709 | 715 | | |
| |||
0 commit comments