The Python help of the module imp
is talking about a frozen module. What is it?

- 15,556
- 13
- 76
- 103
-
You realize that it points to an explanation right there in that doc? Were you looking for a detailed answer about what the Freeze process is? – jdi Mar 28 '12 at 22:21
-
Yeah, you're right I was looking for the freeze process. I read the part. I will reformat it or create a new question. – Dave Halter Mar 28 '12 at 22:26
-
No problem. I just posted an answer to that then. – jdi Mar 28 '12 at 22:32
-
write it here: http://stackoverflow.com/questions/9916647/what-is-the-python-freeze-process I will close this question. – Dave Halter Mar 28 '12 at 22:35
-
`import __hello__` – gerrit Dec 14 '16 at 18:13
-
what is alternative in python 3.7 – user765443 Jun 28 '19 at 12:26
3 Answers
This link explains what the Python Freeze utility is in detail: http://wiki.python.org/moin/Freeze
In a nutshell, it creates a portable version of a python script that carries its own built in interpreter (basically like a binary executable), so that you can run it on machines without python.

- 90,542
- 19
- 167
- 203
http://docs.python.org/library/imp.html#imp.PY_FROZEN links to http://docs.python.org/library/imp.html#imp.init_frozen which explains it:
Frozen modules are modules written in Python whose compiled byte-code object is incorporated into a custom-built Python interpreter by Python’s freeze utility. See Tools/freeze/ for now.

- 310,957
- 84
- 592
- 636
The answer is in the same place:
(Frozen modules are modules written in Python whose compiled byte-code object is incorporated into a custom-built Python interpreter by Python’s freeze utility. See Tools/freeze/ for now.)

- 123,280
- 14
- 225
- 444