i personally write my python code with c++ in mind because i knew i am going to rewrite it over.<br><br>so it&#39;s very easy to do that. it&#39;s fun to find out how many more lines of c++ is required for something done with 2 lines in python.<br>
<br><div class="gmail_quote">On Tue, Mar 25, 2008 at 2:46 AM, Andreas Kostyrka &lt;<a href="mailto:andreas@kostyrka.org">andreas@kostyrka.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Well, not exactly. Mixing Python with C/C++ extends the &quot;coverage&quot; that<br>
you can do with Python.<br>
<br>
Andreas<br>
<br>
<br>
Am Montag, den 24.03.2008, 23:39 -0700 schrieb Tony Cappellini:<br>
<div><div></div><div class="Wj3C7c">&gt; Another alternative is Weave<br>
&gt; <a href="http://www.scipy.org/Weave" target="_blank">http://www.scipy.org/Weave</a><br>
&gt;<br>
&gt; But mixing C/C++ with Python sort of defeats the reasons for using<br>
&gt; Python to begin with<br>
&gt;<br>
&gt; Message: 2<br>
&gt; Date: Sat, 22 Mar 2008 02:44:54 +0100<br>
&gt; From: Eike Welk &lt;<a href="mailto:eike.welk@gmx.net">eike.welk@gmx.net</a>&gt;<br>
&gt; Subject: Re: [Tutor] Python to C++<br>
&gt; To: <a href="mailto:tutor@python.org">tutor@python.org</a><br>
&gt; Message-ID: &lt;<a href="mailto:200803220244.54377.eike.welk@gmx.net">200803220244.54377.eike.welk@gmx.net</a>&gt;<br>
&gt; Content-Type: text/plain; charset=utf-8<br>
&gt;<br>
&gt; On Friday 21 March 2008 23:37, Dinesh B Vadhia wrote:<br>
&gt; &gt; Thank-you for all the suggestions for converting to C/C++ which<br>
&gt; &gt; will be followed up.<br>
&gt; &gt;<br>
&gt; &gt; Can we interface Python to a C++ library and if so how?<br>
&gt; &gt;<br>
&gt; &gt; Dinesh<br>
&gt; &gt;<br>
&gt;<br>
&gt; If you have only few classes / member functions Boost-Python is a good<br>
&gt; solution.<br>
&gt; <a href="http://www.boost.org/libs/python/doc/" target="_blank">http://www.boost.org/libs/python/doc/</a><br>
&gt;<br>
&gt; I heard that SWIG can also generate glue code for C++.<br>
&gt; <a href="http://www.swig.org/Doc1.3/SWIGPlus.html" target="_blank">http://www.swig.org/Doc1.3/SWIGPlus.html</a><br>
&gt;<br>
&gt; You could also look at Py-QT they have a tool like SWIG (SIP I think),<br>
&gt; which they use to generate the glue code for the fairly big QT<br>
&gt; library. Maybe you like it better.<br>
&gt; <a href="http://www.riverbankcomputing.co.uk/pyqt/" target="_blank">http://www.riverbankcomputing.co.uk/pyqt/</a><br>
&gt; _______________________________________________<br>
&gt; Tutor maillist &nbsp;- &nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
&gt; <a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</div></div><br>_______________________________________________<br>
Tutor maillist &nbsp;- &nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div><br>