SWIG and XML and Python

Dave Kuhlman dkuhlman at rexx.com
Sat Oct 12 02:23:17 CEST 2002


David Abrahams wrote:

[snip]
> 
> ...which might be just what I need. How much of C++ can it handle?
> Every time I try to throw advanced C++ code at one of these tools, it
> chokes and dies.

My belief is that C++ was designed to frustrate and defeat those who attempt 
to write code analysis tools.  However, you might want to take a look at:

    http://www.swig.org/article_cpp.html

I know the title of this page ("Thoughts on the Insanity of C++ Parsing") 
does not sound encouraging.  However, it does talk about some SWIG 
techniques for helping SWIG understand C++ code.  I have not tried these 
techniques myself, but I believe that they would help in generating Python 
wrappers when the C++ code gets screwy (OK, screwier than usual, since all 
C++ code is screwy).

And, thanks for the explanation of Boost.

  - Dave

[snip]

-- 
Dave Kuhlman
dkuhlman at rexx.com
http://www.rexx.com/~dkuhlman




More information about the Python-list mailing list