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

2013-11-16 Thread Eric Snow
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

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

2013-11-16 Thread M.-A. Lemburg
On 16.11.2013 18:48, Eric Snow wrote: 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

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

2013-11-16 Thread Guido van Rossum
This is very old DNA. The persistent user request was a way to bundle up a Python program as a single executable file that could be sent to a friend or colleague and run without first having to install Python. If you Google for python freeze you'll still see old references to it. IIRC I did the

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

2013-11-16 Thread Eric Snow
On Sat, Nov 16, 2013 at 10:55 AM, M.-A. Lemburg m...@egenix.com wrote: It's used as main()-function for frozen Python interpreters. See eGenix PyRun as an example and the freeze tool in Tools/freeze/ for the implementation that uses this API: http://www.egenix.com/products/python/PyRun/ On