padding byte not retained in slices
Hello,
In the current version (2.3.0), the padding byte resets to 0xFF when a slice is taken:
In [14]: ih.padding
Out[14]: 0
In [15]: ih[:4].padding
Out[15]: 255
It would make sense to copy the padding byte to the new instance.
Yep, makes sense.
чт, 22 июл. 2021 г., 14:58 Itay Perl @.***>:
Hello,
In the current version (2.3.0), the padding byte resets to 0xFF when a slice is taken:
In [14]: ih.padding Out[14]: 0
In [15]: ih[:4].padding Out[15]: 255
It would make sense to copy the padding byte to the new instance.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/python-intelhex/intelhex/issues/56, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUIG6Q3FJBD2KHQOOM3JLTZABWPANCNFSM5AZ3IEVA .