MantisBT - VTK
View Issue Details
0014037VTK(No Category)public2013-04-29 15:062013-07-15 05:24
Edson Tadeu M. Manoel 
David Gobbi 
normalminorhave not tried
closedfixed 
5.10.1 
5.10.1 
TBD
incorrect functionality
0014037: hash(vtk.vtkObject) raises 'AttributeError: mro' in Python 2.7
Because of this, the vtk classes can't be used as dict keys.


How to reproduce:

Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

>>> import vtk
>>> hash(vtk.vtkObject)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: mro


See e-mail:

Date: Tue, 26 May 2009 23:19:02 -0600
From: Carlos Scheidegger <cscheid@sci.utah.edu>
To: vtkusers@vtk.org, vtk-developers@vtk.org
Subject: [vtkusers] More on VTK 5.0.4: hashing vtk class objects broken?
No tags attached.
txt 14037-PyVTKClass.txt (1,237) 2013-04-30 15:17
https://www.vtk.org/Bug/file/9438/14037-PyVTKClass.txt
Issue History
2013-04-29 15:06Edson Tadeu M. ManoelNew Issue
2013-04-30 15:17David GobbiFile Added: 14037-PyVTKClass.txt
2013-04-30 15:17David GobbiAssigned To => David Gobbi
2013-04-30 15:17David GobbiStatusbacklog => tabled
2013-04-30 15:17David GobbiNote Added: 0030635
2013-07-15 05:24David GobbiNote Added: 0031141
2013-07-15 05:24David GobbiStatustabled => closed
2013-07-15 05:24David GobbiResolutionopen => fixed
2013-07-15 05:24David GobbiFixed in Version => 5.10.1

Notes
(0030635)
David Gobbi   
2013-04-30 15:17   
Attached a patch for VTK 5.10.1.
(0031141)
David Gobbi   
2013-07-15 05:24   
Commit 7e31cd5f should fix this problem, it was applied prior to the 5.10.1 release.