Mercurial > cpython-lru_cache-weakref
annotate Demo/embed/README @ 79675:c0a2294de787 2.7
Issue #16199: Backport 2to3 typo fix from 3.2.
| author | Chris Jerdonek <chris.jerdonek@gmail.com> |
|---|---|
| date | Thu, 11 Oct 2012 16:15:46 -0700 |
| parents | edd19217b396 |
| children |
| rev | line source |
|---|---|
|
2601
35233640479b
adapted to new naming; clarify comments somewhat
Guido van Rossum <guido@python.org>
parents:
1964
diff
changeset
|
1 This directory show how to embed the Python interpreter in your own |
|
35233640479b
adapted to new naming; clarify comments somewhat
Guido van Rossum <guido@python.org>
parents:
1964
diff
changeset
|
2 application. The file demo.c shows you all that is needed in your C |
|
35233640479b
adapted to new naming; clarify comments somewhat
Guido van Rossum <guido@python.org>
parents:
1964
diff
changeset
|
3 code. |
| 1964 | 4 |
| 5 To build it, you may have to edit the Makefile: | |
| 6 | |
| 7 1) set blddir to the directory where you built Python, if it isn't in | |
| 8 the source directory (../..) | |
| 9 | |
| 10 2) change the variables that together define the list of libraries | |
| 11 (MODLIBS, LIBS, SYSLIBS) to link with, to match their definitions in | |
| 12 $(blddir)/Modules/Makefile | |
|
15797
edd19217b396
Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents:
2601
diff
changeset
|
13 |
|
edd19217b396
Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents:
2601
diff
changeset
|
14 An additional test program, loop.c, is used to experiment with memory |
|
edd19217b396
Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents:
2601
diff
changeset
|
15 leakage caused by repeated initialization and finalization of the |
|
edd19217b396
Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents:
2601
diff
changeset
|
16 interpreter. It can be build by saying "make loop" and tested with |
|
edd19217b396
Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents:
2601
diff
changeset
|
17 "make looptest". Command line usage is "./loop <python-command>", |
|
edd19217b396
Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents:
2601
diff
changeset
|
18 e.g. "./loop 'print 2+2'" should spit out an endless number of lines |
|
edd19217b396
Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents:
2601
diff
changeset
|
19 containing the number 4. |
