vector __setitem__ raises IndexError at improper time

Bug #549764 reported by Jeff Packer on 2010-03-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyEigen
Status tracked in Trunk
Trunk
Undecided
Jeff Packer

Bug Description

All vector classes in pyeigen 0.1 raise an IndexError at inappropriate times:

eg:

>> v = pyeigen.Vector4f()
>> v[4] = 10.0 # this should raise an IndexError!
>> v
Vector4f(0.0000, 0.0000, 0.0000, 0.0000)
>> v[3] = 1.0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IndexError: index out of range
>> v
Vector4f(0.0000, 0.0000, 0.0000, 1.0000)

Related branches

Jeff Packer (jfpacker) on 2010-03-27
Changed in pyeigen:
assignee: nobody → Jeff Packer (jfpacker)
Jeff Packer (jfpacker) on 2010-03-27
Changed in pyeigen:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers