Behind the scenes python boot activity

What happens behind the scenes when calling a python tooltip?

I'm more interested in understanding how methods / functions, such as printing, importing and the like, are loaded in the interpreter?

EDIT: Some clarification on my question:
When we enter python into our console unix prompt / windows and Hit enter which libraries are loading. My particular interest is in how users can access keywords such as print and import.

+5
python
Jan 19 '11 at 12:58
source share
2 answers

Like you, I am very interested in the basic mechanisms of Python. I think you will like this series: http://tech.blog.aknin.name/category/my-projects/pythons-innards/

+5
Jan 19 2018-11-11T00:
source share

There are too many levels with this question. Here is a very rough sketch.

Here there is a whole initialization at the C level , a bunch in -the-interpreter , reading the environment and parameters , setting up the interpreter . Everything that determines what you see when python starts up.

I know there is a good description of the whole process somewhere.

+4
Jan 19 2018-11-11T00:
source share