How does "import __hello__" work?

Question:

Recently I’ve come across this “Hello world” Python program:

>>> import __hello__
Hello world!

I wonder how it works and how to view the source code of the __hello__ module.

Asked By: Eugene Yarmash

||

Answers:

__hello__ is a frozen module intended as a test case for frozen module support. Its source code is automatically generated by the Python freeze utility.

Answered By: Michael Mior
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.