bpython / curtsies

Curses-like terminal wrapper with a display based on compositing 2d arrays of text.
MIT License
228 stars 52 forks source link

Document or prevent flipping axes of slice targets #152

Open thomasballinger opened 4 years ago

thomasballinger commented 4 years ago

@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.