Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Negative Indexes with Slices (__getitem__) #576

Open
bsthorpe742 opened this issue May 25, 2017 · 1 comment
Open

Negative Indexes with Slices (__getitem__) #576

bsthorpe742 opened this issue May 25, 2017 · 1 comment

Comments

@bsthorpe742
Copy link
Contributor

Many objects do not support negative indexes with slices. The slicing behavior is handled with __getitem__.
Added support for negative index slicing in Bytes.__getitem__ in pull request #574. Bytes.__getitem__ could be used as an example for supporting negative slicing in other objects which support __getitem__.

@simsausaurabh
Copy link

voc/python/common/org/python/types/ByteArray.java is one among which supports __getitem__..
I am currently working on this to support negative slicing.
Thank you.

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

No branches or pull requests

2 participants