indexing zero-length lists
thautwarm opened this issue · comments
.NET 6 throws ArgumentOutOfRangeException
when executing the following code:
ironpython2/Src/IronPython/Runtime/Operations/ListOfTOps.cs
Lines 145 to 147 in aa0526d
It seems that such code is not used in IronPython 2. I found this bug when reusing the code for a Unity IL2CPP compatible .NET Python implementation.
It seems that such code is not used in IronPython 2. I found this bug when reusing the code for a Unity IL2CPP compatible .NET Python implementation.
Indeed, looks like extended slicing doesn't work with List<T>
and this code is never invoked.
Doesn't appear to be an issue with IronPython 3 (the code has changed since it split from ironpython2).