[issue39095] Negative Array Index not Yielding "Index Out Of Bounds"

2019-12-18 Thread NNN
NNN added the comment: Ahh, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39095] Negative Array Index not Yielding "Index Out Of Bounds"

2019-12-18 Thread Zachary Ware
Zachary Ware added the comment: `-1` is not out of bounds unless the array is empty; negative indices count from the other end: >>> a = list("some array") >>> a ['s', 'o', 'm', 'e', ' ', 'a', 'r', 'r', 'a', 'y'] >>> a[-1] 'y' >>> b = [] >>> b[-1] Traceback (most recent call last): File "",

[issue39095] Negative Array Index not Yielding "Index Out Of Bounds"

2019-12-18 Thread NNN
New submission from NNN : Created an 2D array: bigFloorLayout = [] bigFloorLayout=[[False for row in range(0,45] for col in range(0,70] for y in range (offsetY, storageY + offsetY): for x in range (offsetX, storageX + offsetX): bigFloorLayout[x][y] =