0

I'm trying to understand the backend of the request and sys, and os modules.

I've seen or heard somewhere that python modules are pre-written python codes made to be called later in other scripts with the import command. I was just curious as to where the module source codes are located so I can read them to better understand some things in python.

Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
PsOom
  • 37
  • 7
  • Does this answer your question? [Finding the source code for built-in Python functions?](https://stackoverflow.com/questions/8608587/finding-the-source-code-for-built-in-python-functions) – Gino Mempin Nov 18 '20 at 05:30

1 Answers1

0

I think you've got the right mentality. I've become such a better developer just by taking the time to step through the source code.

You can find all of the Python built-in modules here.

You may notice that some of the built-in modules like os and sys are written in C. I’d recommend checking this question out for a better understanding.

In regards to requests, it's a third-party library built around urllib.

brapru
  • 41
  • 4