The title of these chapters in the end might not unambiguously reflect the idea a reader just has depicted into her/his mind. We will try to cover the very basic concepts of how a Python class is formed and destructed with a simplified narrative. The creation and destruction of a Python class, more specifically a Python 3.x class, inevitably juxtaposes with a number of seemingly discrete topics.

More importantly, a reader needs at least moderate knowledge of the Python data model, special methods, metaprogramming, and how the interpreter works behind the scene. Also, there are some repetitions, circular discussion, and oversimplifications that are inevitable — e.g. we had to stick with objects to explain the behavior of a class.

#python #class

All about Pythonic Class: The Birth and Style
1.65 GEEK