L
L
link_vrb2021-10-03 15:16:27
linux
link_vrb, 2021-10-03 15:16:27

Where is the python system library stored on Linux (not modules, but of type int () and so on)?

Where is the python system library stored on Linux (not modules, but of type int () and so on)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2021-10-03
@link_vrb

"of type int() and so on" are not library functions, but built-in ones. Accordingly, they are "stored" in the interpreter code.

A
Alexander Karabanov, 2021-10-03
@karabanov

ls /usr/lib/python*
You can strace see which system calls and libraries are accessed:
strace /usr/bin/python3.8

A
Andy_U, 2021-10-04
@Andy_U

import sys
print(sys.path)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question