Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197555

Re: staticmethod(cls)

From Lawrence D’Oliveiro <ldo@nz.invalid>
Newsgroups comp.lang.python
Subject Re: staticmethod(cls)
Date 2025-09-05 00:15 +0000
Organization A noiseless patient Spider
Message-ID <109da2e$2344i$4@dont-email.me> (permalink)
References <109cp9l$f41$1@reader1.panix.com>

Show all headers | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar


Thread

staticmethod(cls) pa@see.signature.invalid (Pierre Asselin) - 2025-09-04 19:28 +0000
  Re: staticmethod(cls) Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-09-05 00:15 +0000

csiph-web