[C++-sig] Re: Segfault when calling python method from C++

Pierre Barbier de Reuille pierre.barbier at cirad.fr
Mon Jul 28 15:02:13 CEST 2003


David Abrahams wrote:

>Hmm, Joel just checked in some support for this.  See
>http://tinyurl.com/i9gv.
>  
>
I didn't know this project. My goal, even if close, is somehow 
different: I want to be able to use the STL containers as if there were 
python list. At best, anybody should be able to export its own container 
as a python list. But it could be a good idea to use what Joel did ...

>  
>
>>By the time, it only works with g++-3.2 or later, but it's just a
>>question of namespace and include locations.  There is a _small_
>>help at the beginning. The only thing not written is for the
>>handling of the exceptions: you have to call define_stl_exceptions()
>>in your module function. The wcc files correspond to your hpp ones
>>and the hh is here for tiled compilation only.
>>    
>>
>
>The first thing I'd need in order to evaluate this is some examples
>and documentation which describe what it does.
>  
>
Ok, I join an example of module along with a python test file. You just 
need to execute ths python file to test ...
For the documentation I'm writing it and I'll send it to you as soon as 
possible.

>  
>
>>My main concern about what you said is about the Boost.Python test
>>suite ... how to document myself about how it works ?
>>    
>>
>
>I can't understand what you mean.  Can you rephrase?  Testing and
>documentation are two separate things; I want tests for
>libs/python/test and documentation for libs/python/doc.
>
I just wondered if you had any rule to write test suite. But if the kind 
of test I send you with this mail is ok ...

>
>Oh, and BTW, the GPL is not Boost-compatible.
>http://www.boost.org/more/lib_guide.htm#License
>
>  
>
Oh ... I didn't notice that ! By the way, what is the licence of 
Boost.Python ? I don't see any licence ! I think the best is to include 
my work (if you do include it) with the same licence as Boost.Python.

Thanks,

PS : I just noticed an error ... so I resend the stl2list.wcc file ... I 
can't assure it's totally unbugged

-- 
Pierre Barbier de Reuille

INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de la Lironde
34398 MONTPELLIER CEDEX 5, France

tel   : (33) 4 67 61 65 77    fax   : (33) 4 67 61 56 68 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stl2py.tgz
Type: application/x-gtar
Size: 5347 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030728/0eb081c6/attachment.tgz>


More information about the Cplusplus-sig mailing list