| Start |
|---|
| Display the bytecode of a function The Python interpreter compiles code to bytecode before executing it on the Python's virtual machine (see also What is python bytecode? (opens new window)). Here's how to view the bytecode of a Python function The function |
Display the source code of an object Objects that are not built-inTo print the source code of a Python object use Here's how to print the source code of the method To just print the documentation string Print full path of the file where the method Objects defined interactivelyIf an object is defined interactively Built-in objectsThe source code for Python's built-in functions is written in c and can only be accessed by looking at the Python's source code (hosted on Mercurial (opens new window) or downloadable from https://www.python.org/downloads/source/) (opens new window)). |
| Exploring the code object of a function CPython allows access to the code object for a function object. The |
Read Article
https://develop.horje.com/learn/1434/reference