Frames, scope, objects Frames Above image represents the Python environment and essentially is one of the high level ways to represent how the code works internally. While programming in Python we `def`ine functions. Every function has it's own scope which corresponds to `frames`. Every frame maintain it's value stack. Value stack is used by bytecode … Continue reading Python Internals – 3
Month: Apr 2021
Python Internals – 2
Example walk through Let us take a look at how a simple program is executed in Python world. Compilation Simple Python Code Save this program in a file named `test.py` and execute using Python and you should see below output. python test.py 3 Now, in order to understand what happened in the background (the Purple … Continue reading Python Internals – 2
Python Internals – 1
Intro and Installation Overview This is a fairly large topic. Every body learns python for the sake of being an easy language - it is coming out to be an essential languages to be learnt thanks to AI/ML ecosystem. Of course there are other usages of Python as well. Learning this language is easy, but … Continue reading Python Internals – 1