What is the difference between __builtins__ and __builtin__? #2907
Answered
by
danieledward88
lukasmiller3
asked this question in
Q&A
-
|
What is the difference between builtins and builtin? |
Beta Was this translation helpful? Give feedback.
Answered by
danieledward88
Feb 1, 2026
Replies: 1 comment
-
|
A:builtins is a reference to the built-in module (lowercase in Python 3, builtin in Python 2). It's automatically available in all modules. In Python 3, it's the same as |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lukasmiller3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A:builtins is a reference to the built-in module (lowercase in Python 3, builtin in Python 2). It's automatically available in all modules. In Python 3, it's the same as
builtinsmodule. It contains all built-in functions and exceptions.