[C++-sig] Boost.Python code generator

Niki Spahiev niki at vintech.bg
Fri Dec 6 10:32:34 CET 2002


Nicodemus wrote:
> Ralf W. Grosse-Kunstleve wrote:
> 
>> Do you have a plan for dealing with "Python only" member functions? 
>> How would
>> you deal with, for example, a __getitem__ that does range checking and 
>> raises
>> the proper Python exception if necessary (assume there is no 
>> range-checking
>> member function in C++).
> 
> Actually, I have plans to support it. My basic idea was that the user 
> should simply state:
> 
> class A
>    operator [] (key int, type float, range 0-size())
>    def size
> 
> 

Why not borrow syntax (and parser) from Pyrex?
Also maybe swig-xml to interface can work for generating initial contents.

Whatever it is i have plan how to use it.

regards,
Niki Spahiev





More information about the Cplusplus-sig mailing list