Commit Graph

8 Commits

Author SHA1 Message Date
Fred Drake 4482929734 use correct function in example 2006-02-15 06:55:57 +00:00
Fred Drake 34fed3a3b7 fix stupid typo 2005-10-11 20:26:05 +00:00
Georg Brandl b9ab7a584d Oops. 2005-07-12 13:20:49 +00:00
Georg Brandl 9abfa90a6d bug [ 1232768 ] Mistakes in online docs under "5.3 Pure Embedding" 2005-07-12 13:17:59 +00:00
Neal Norwitz 0f30dbd991 Fix SF # 626275, missing DECREF's in embedding example
Tested w/valgrind, all paths except the return on PyInt_AsLong() failure
I think I got all of these right.

Backport candidate.
2002-12-17 00:40:38 +00:00
Neal Norwitz ae6bf4adfa Remove unused variable 2002-12-02 04:40:21 +00:00
Fred Drake 9b88b4c9e8 Do not #include <stdio.h> since Python.h already does that. 2001-09-06 16:20:33 +00:00
Fred Drake 53765753c4 Lots of new text and example code on embedding Python in C, contributed
by Albert Hofkamp.  Some editing has been done for style and markup
consistency.

This also supplies an example of importing modules and calling a function
defined in the module, so this closes SF bug #440037 as well.

(The long example code was moved to a separate file so that it would
format properly.)
2001-08-04 01:58:36 +00:00