[Pythonmac-SIG] embedding python into C

Jack Jansen jack@oratrix.nl
Tue, 07 Dec 1999 22:14:19 +0100


Recently, etienne antoniutti di muro <etienne@alias.it> said:
> List members,
> what kind of error is:
> 
> "no mem to add parser accelerators"
> 
> occured after a PyRun_SimpleString(...) ?

Your application has run out of memory. Python allocates everything
out of the application heap, my guess is that the engine will gobble
up at least 500k for bookkeeping, and add to that any memory your
script uses. If you give your application about 4Mb extra (aside from
what the application itself needs) that should be fine for scripts
that don't create huge datastructures.

--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm