[vtk-developers] [VTK 0012098]: Python wrapper pointer mangling

Mantis Bug Tracker mantis at public.kitware.com
Sun Apr 17 10:03:55 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://www.vtk.org/Bug/view.php?id=12098 
====================================================================== 
Reported By:                David Gobbi
Assigned To:                David Gobbi
====================================================================== 
Project:                    VTK
Issue ID:                   12098
Category:                   Development
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2011-04-17 08:03 MDT
Last Modified:              2011-04-17 08:03 MDT
====================================================================== 
Summary:                    Python wrapper pointer mangling
Description: 
The pointer mangling done by the python wrappers is done differently
in different parts of the code.  It needs to be consolidated and properly
tested against SWIG pointer mangling.

Pointers should be mangled like this: _08a71808_p_vtkSomething
However, in vtkPythonArgs, void * is wrapped as _08a71808_void_p
Some demangling is also done by vtkTkRenderWidget, and various
manglings/demanglings are done in several .py files.

Type checks when demangling should incorporate an IsA check instead
of requiring an exact type match, which will require changes to the way
vtkPythonUtil::UnmanglePointer is called.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-17 08:03 David Gobbi    New Issue                                    
2011-04-17 08:03 David Gobbi    Status                   new => assigned     
2011-04-17 08:03 David Gobbi    Assigned To               => David Gobbi     
======================================================================




More information about the vtk-developers mailing list