Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
JCC 3
Description
JArray objects use the legacy _getslice_ implementation, and hence aren't sliceable in Python 3.
In []: lucene.JArray_byte(b'abc')[:] ... TypeError: sequence index must be integer, not 'slice'
I'm not necessarily advocating that they should be sliceable, just that it's a regression. It's also worth noting that slices returned Python sequences, not JArray objects, which I think is worth revisiting if it's going to be re-implemented anyway.