Friday, November 25, 2022

[FIXED] How does "import __hello__" work?

Issue

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.


Solution

__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
Answer Checked By - Robin (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.