Object Introspection
The capacity to perceive the article alongside the entirety of its subtleties, for example, id or area at runtime.
There are many kinds of introspections. We have as of now talked about the type( ), presently we should move onto id( ). Id gives us the id assigned to the specific article. The id of each item is extraordinary, which means it is unique, and no two articles can have a similar id.
The main reflection work is dir(). It returns us a rundown of qualities and techniques related to an article. By utilizing dir(), we can check the qualities that our item is made out of. It is generally executed when refreshing our item by embedding more ascribes or strategies.

0 Comments