Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

padding byte not retained in slices #56

Open
itayperl opened this issue Jul 22, 2021 · 1 comment
Open

padding byte not retained in slices #56

itayperl opened this issue Jul 22, 2021 · 1 comment

Comments

@itayperl
Copy link

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.

@bialix
Copy link
Member

bialix commented Jul 22, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants