Skip Montanaro wrote:
>
> Lulu> ... Lutz Prechelt's study:
>
> Lulu> http://www.ipd.uka.de/~prechelt/Biblio/jccpprt_computer2000.pdf
>
> Interesting, especially the last statement of the abstract:
>
> In general, the differences between languages tend to be smaller than
> the typical differences due to different programmers within the same
> language.
Sort of just backs up Brooks' conclusions all over again, doesn't it...
Chris Gonnerman wrote:
> From: "Ian Pellew" <ipellew(a)pipemedia.co.uk
>>#include "Python.h"
>>main() {
>> int x;
>> PyObject *t;
>> t = PyTuple_New(3);
>> x = Py_file_input;
>> printf("Hiya, x = %d\n", x);
>>}
>
> Your compilation command seems to be missing a -lpython to
> load libpython.a.
You'll also need to insert a call to Py_Initialize
before calling any other Python/C API functions.
See the section "Embedding Python in Another Application"
in the "Extending and "Embedding" manual for more
info.
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg