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