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

Setter method on xmpz slices does not modify the value when the slice is unbounded #342

Open
vogr opened this issue Jul 29, 2022 · 0 comments

Comments

@vogr
Copy link

vogr commented Jul 29, 2022

Setting the value of an unbounded slice of bits on an xmpz object does not seem to have any effect:

In [10]: a = xmpz(0)

In [11]: a[1:] = 0b1111

In [12]: bin(a)
Out[12]: '0b0'

In [13]: a[1:100] = 0b1111

In [14]: bin(a)
Out[14]: '0b11110'
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

1 participant