13

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.

1
  • For Python 3.11, add __hello__.main()
    – wjandrea
    May 17 at 20:03

1 Answer 1

14

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

5

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.