Accessing source code of object in python🐍

Keerti Prajapati
1 min readDec 20, 2020

As we know, everything in python is an object, even function we define is also an object in Python. As a programmer, we write so many functions and also do use functions written by others.

When we define the function, we know what is written in function and how exactly it works, but when we use functions of other module we don’t know what’s the source code of it.

In this short article, you will learn method to get source code of functions in python.

--

--