mirror of https://github.com/python/cpython
cea7e55998
svn+ssh://svn.python.org/python/branches/py3k ........ r83393 | georg.brandl | 2010-08-01 10:35:29 +0200 (So, 01 Aug 2010) | 1 line #1690103: fix initial namespace for code run with trace.main(). ........ r83396 | georg.brandl | 2010-08-01 10:52:32 +0200 (So, 01 Aug 2010) | 1 line #4810: document "--" option separator in timeit help. ........ r83398 | georg.brandl | 2010-08-01 11:06:34 +0200 (So, 01 Aug 2010) | 1 line #8826: the "expires" attribute value is a date string with spaces, but apparently not all user-agents put it in quotes. Handle that as a special case. ........ r83404 | georg.brandl | 2010-08-01 16:25:22 +0200 (So, 01 Aug 2010) | 1 line #6439: fix argument type for PySys_SetArgvEx() and Py_SetProgramName() in Demo/embed code. ........ r83405 | georg.brandl | 2010-08-01 16:38:17 +0200 (So, 01 Aug 2010) | 1 line #4943: do not try to include drive letters (and colons) when looking for a probably module name. ........ r83408 | georg.brandl | 2010-08-01 17:30:56 +0200 (So, 01 Aug 2010) | 1 line #5551: symbolic links never can be mount points. Fixes the fix for #1713. ........ |
||
---|---|---|
.. | ||
Makefile | ||
README | ||
demo.c | ||
importexc.c | ||
loop.c |
README
This directory show how to embed the Python interpreter in your own application. The file demo.c shows you all that is needed in your C code. To build it, you may have to edit the Makefile: 1) set blddir to the directory where you built Python, if it isn't in the source directory (../..) 2) change the variables that together define the list of libraries (MODLIBS, LIBS, SYSLIBS) to link with, to match their definitions in $(blddir)/Modules/Makefile An additional test program, loop.c, is used to experiment with memory leakage caused by repeated initialization and finalization of the interpreter. It can be build by saying "make loop" and tested with "make looptest". Command line usage is "./loop <python-command>", e.g. "./loop 'print 2+2'" should spit out an endless number of lines containing the number 4.