View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014037VTK(No Category)public2013-04-29 15:062013-07-15 05:24
ReporterEdson Tadeu M. Manoel 
Assigned ToDavid Gobbi 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version5.10.1 
Target VersionFixed in Version5.10.1 
Summary0014037: hash(vtk.vtkObject) raises 'AttributeError: mro' in Python 2.7
DescriptionBecause 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?
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Filestxt file icon 14037-PyVTKClass.txt [^] (1,237 bytes) 2013-04-30 15:17 [Show Content]

 Relationships

  Notes
(0030635)
David Gobbi (developer)
2013-04-30 15:17

Attached a patch for VTK 5.10.1.
(0031141)
David Gobbi (developer)
2013-07-15 05:24

Commit 7e31cd5f should fix this problem, it was applied prior to the 5.10.1 release.

 Issue History
Date Modified Username Field Change
2013-04-29 15:06 Edson Tadeu M. Manoel New Issue
2013-04-30 15:17 David Gobbi File Added: 14037-PyVTKClass.txt
2013-04-30 15:17 David Gobbi Assigned To => David Gobbi
2013-04-30 15:17 David Gobbi Status backlog => tabled
2013-04-30 15:17 David Gobbi Note Added: 0030635
2013-07-15 05:24 David Gobbi Note Added: 0031141
2013-07-15 05:24 David Gobbi Status tabled => closed
2013-07-15 05:24 David Gobbi Resolution open => fixed
2013-07-15 05:24 David Gobbi Fixed in Version => 5.10.1


Copyright © 2000 - 2018 MantisBT Team