Re: I always forget how to access information about classes and methods - how to do it?
John Bokma <[email protected]> Mon, 9 Mar 2026 17:52:05 +0100
| Newsgroups | gmane.comp.python.general |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
On 09/03/2026 17:27, Chris Green wrote: > I know one can access information about python3 classes and methods > (e.g. list the methods in a class, show the parameters for a method, > etc.) but I always forget how to do it. > > Can someone enlighten me please, plus tell me where it is documented > so that I can bookmark it and not need to ask again. inspect? https://docs.python.org/3/library/inspect.html -- Static tumblelog generator: https://github.com/john-bokma/tumblelog/ Available as Python or Perl. Example tumblelog: https://plurrrr.com/