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

Document or prevent flipping axes of slice targets #152

Open
thomasballinger opened this issue Jul 31, 2020 · 0 comments
Open

Document or prevent flipping axes of slice targets #152

thomasballinger opened this issue Jul 31, 2020 · 0 comments

Comments

@thomasballinger
Copy link
Member

@etiennerichart pointed out that strings can be flipped:

>>> from curtsies import fsarray
>>> arr = fsarray(['hello', 'there!'])
>>> arr[1:3, 3:4] = 'xx'
>>> arr.dumb_display()
hello
thexe!
   x

Is this intended? I want to say no.
arr[1:3, 3] = 'xx' also works.

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