embedding python2.2 in C++/Qt

Jp Calderone exarkun at intarweb.us
Fri Apr 25 19:08:45 CEST 2003


On Fri, Apr 25, 2003 at 01:25:31PM +0200, jdominion at gmx.de wrote:
> hi!
> 
> Who has up-to-date experience in embedding python into C++?  All examples i
> found in the internet or in the (not recommendable) book of Himstedt/M?tzel
> are for python version 1.5.

  Did you read the adequate reference at http://www.python.org/doc/?

> 
> I include the Python.h and cannot perform the command Py_Initialize(). what
> is the problem?

  This isn't a good way to ask questions.  Please read this:

  http://www.catb.org/~esr/faqs/smart-questions.html

> I know, this is more a C++-question. but  everybody promise that it is "very
> easy" to embed/extend python.
> 

  It is very easy to extend Python.  Embedding takes a little more work, and
gives you slightly less useful results.  For a more detailed comparison,

  http://www.twistedmatrix.com/users/glyph/rant/extendit.html

  Jp 

-- 
#!/bin/bash
( LIST=(~/.sigs/*.sig)
  cat ${LIST[$(($RANDOM % ${#LIST[*]}))]}
  echo -- $'\n' `uptime | sed -e 's/.*m//'` ) > ~/.signature
-- 
 up 36 days, 13:03, 6 users, load average: 0.47, 0.37, 0.35





More information about the Python-list mailing list