Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where is the math.py (socket.py, regex.py, etc.) source file?

file source
0
10 Posted

Where is the math.py (socket.py, regex.py, etc.) source file?

0

If you can’t find a source file for a module it may be a builtin or dynamically loaded module implemented in C, C++ or other compiled language. In this case you may not have the source file or it may be something like mathmodule.c, somewhere in a C source directory (not on the Python Path). There are (at least) three kinds of modules in Python: • modules written in Python (.py); • modules written in C and dynamically loaded (.dll, .pyd, .so, .sl, etc); • modules written in C and linked with the interpreter; to get a list of these, type: import sys print sys.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123