[New-bugs-announce] [issue39095] Negative Array Index not Yielding "Index Out Of Bounds"
report at bugs.python.org
Wed Dec 18 23:13:20 EST 2019
New submission from NNN <fibulator777 at hotmail.com>:
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] = True
Offset is a negative number, and thus accessing bigFloorLayout[-1], which did not yield "Index out of Bounds" as it should.
This is in Blender 2.81, so I have no idea what version of python it is.
title: Negative Array Index not Yielding "Index Out Of Bounds"
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce