[vtk-developers] [VTK 0013177]: Python wrapping of argument names beginning with "const" fails

Mantis Bug Tracker mantis at public.kitware.com
Tue May 15 13:28:12 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://vtk.org/Bug/view.php?id=13177 
====================================================================== 
Reported By:                Eric Nodwell
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   13177
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   low
Status:                     backlog
Project:                    TBD 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2012-05-15 13:28 EDT
Last Modified:              2012-05-15 13:28 EDT
====================================================================== 
Summary:                    Python wrapping of argument names beginning with
"const" fails
Description: 
Python wrapping of methods in VTK classes that have arguments starting with
"const" fail.  For example, if one adds this method to a class in vtkMy, it will
fail to be Python wrapped:

  virtual int AddConstraint(const char* constraintName);

The work-around is trivial, as simply renaming "constraintName)" to something
like "arg_constraintName" will work.  However, it is a head-scratcher to figure
out in the first place.

This affects versions 5.6 through 5.10, but not 5.4 and earlier.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-05-15 13:28 Eric Nodwell   New Issue                                    
======================================================================




More information about the vtk-developers mailing list