Re: staticmethod(cls)
Lawrence D’Oliveiro <[email protected]> Fri, 5 Sep 2025 00:15:10 -0000 (UTC)
| Newsgroups | comp.lang.python |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
On Thu, 4 Sep 2025 19:28:53 -0000 (UTC), Pierre Asselin wrote: > Now that's *seriously* not-in-the-manual. I won't rely on that > behavior, plus the expanded documentation is a bit too much, > but I'm curious as how that interaction between staticmethod() > and help()/pydoc came about. Note that the help for Inner1 is listed in the section of the help for Outer headed “Static methods defined here:”. So all that’s happening is that the help() function is looking for class members that have been put through staticmethod(), whatever their type is, and I think recursively putting them through their own help() calls.