Advanced ways to get object information from within python

Dieter Maurer dieter at handshake.de
Thu Dec 23 12:17:33 EST 2021


Julius Hamilton wrote at 2021-12-23 12:01 +0100:
>I would like to significantly increase my abilities to find the information
>I am seeking about any Python object I am using from within Python. I find
>this to be a really essential skill set. After reading documentation, it
>really helps to get under the hood at the command line and start testing
>your own competence by examining all the methods and classes, and their
>arguments and return types and so on.
>
>I was hoping someone could help me fill in more details about what I
>currently know.

Look at the `inspect` module.


More information about the Python-list mailing list