~pythonregexp2.7/python/issue2636-09-01+10

« back to all changes in this revision

Viewing changes to Doc/extending/embedding.rst

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 21:39:45 UTC
  • mfrom: (39055.1.33 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922213945-23717m5eiqpamcyn
Merged in changes from the Single-Loop Engine branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
So if you are embedding Python, you are providing your own main program.  One of
27
27
the things this main program has to do is initialize the Python interpreter.  At
28
 
the very least, you have to call the function :cfunc:`Py_Initialize` (on Mac OS,
29
 
call :cfunc:`PyMac_Initialize` instead).  There are optional calls to pass
30
 
command line arguments to Python.  Then later you can call the interpreter from
31
 
any part of the application.
 
28
the very least, you have to call the function :cfunc:`Py_Initialize`.  There are
 
29
optional calls to pass command line arguments to Python.  Then later you can
 
30
call the interpreter from any part of the application.
32
31
 
33
32
There are several different ways to call the interpreter: you can pass a string
34
33
containing Python statements to :cfunc:`PyRun_SimpleString`, or you can pass a