Integrate Python in a C/C++ application

Peter Hansen peter at engcorp.com
Tue May 20 14:38:25 EDT 2003


Cameron Laird wrote:
> 
> The second major reason is simply that Python has become
> more complete.  A 1993 designer might reasonably default
> to C (or C++), supplemented as necessary.  He wants script-
> ability, so he embeds Python.  Would he turn it inside-out,
> and instead extend Python?  It's unlikely, because at that
> time, it was hard to regard Python as a general-purpose
> language.  Ten years later, we can argue that Python is
> more general-purpose than C!  People can *see* Python as
> the top-level architecture far better than when the library
> lacked networking, OS calls, and so on.
> 
> There's a serious case to be made here.  I suspect I don't
> have the concentration today to make it better than what I
> offer above.

What you offer is excellent, as usual, Cameron.

I hereby nominate your "...we can argue that Python is more 
general-purpose than C" as the QOTW, and I intend to start
infecting others with this meme effective immediately. :)

-Peter




More information about the Python-list mailing list