hash(vtk.vtkObject) raises 'AttributeError: mro' in Python 2.7
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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 "", line 1, in 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?