[Python-Dev] What's the story on Py_FrozenMain?

Eric Snow ericsnowcurrently at gmail.com
Sat Nov 16 18:48:38 CET 2013

While looking at something unrelated, I happened to peek at
Python/frozenmain.c and found Py_FrozenMain().  I kind of get the idea
of it, but am curious what motivated the addition and who might be
using it.  The function is not documented and doesn't have much
explanation.  I'm guessing that not many are familiar with it (e.g.

FWIW the function was added quite a while ago (and hasn't been touched
a whole lot since):

changeset:   1270:14369a5e61679364deeae9a9a0deedbd593a72e0
branch:      legacy-trunk
user:        Guido van Rossum <guido at python.org>
date:        Thu Apr 01 20:59:32 1993 +0000
summary:     Support for frozen scripts; added -i option.


More information about the Python-Dev mailing list