What is a frozen Python module?

23,985

Solution 1

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.

Solution 2

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.

Solution 3

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.)

Share:
23,985
Dave Halter
Author by

Dave Halter

Author of the Python autocompletion framework Jedi and its VIM-plugin jedi-vim. I love Python, VIM, PostgreSQL, Linux and Bash. If you are interested in my work, follow me on github.

Updated on March 29, 2020

Comments