vector __setitem__ raises IndexError at improper time

Bug #549764 reported by Jeff Packer
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Status tracked in Trunk
Jeff Packer

Bug Description

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


>> 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)
Changed in pyeigen:
assignee: nobody → Jeff Packer (jfpacker)
Jeff Packer (jfpacker)
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