I don’t know what “man style” means to you. To me, I think of examples likeman man which starts off with a synopsis:
SYNOPSIS man [-C file] [-d] [-D] [--warnings[=warnings]] ...
and then later on goes to list and describe each option
General options -C file, --config-file=file Use this user configuration file rather than the default of ~/.manpath.
I can’t reconcile your comments to what I see in the examples you give. You seem to be using “man style” to mean that parameters aren’t listed explicitly, but to me it looks like man pages do list parameters (options) explicitly.
When I look at the two examples you give, theopen built-in and numpy’slinalg.norm, it isn’t clear to me which one you prefer.Both examples list their parameters explicitly:
open(file, mode='r', buffering=- 1, encoding=None, errors=None, newline=None, closefd=True, opener=None) linalg.norm(x, ord=None, axis=None, keepdims=False)
and then both go on to list and describe each parameter explicitly, just as man pages do (well, at least some of them) and so I have no idea which of those two examples you prefer, or why. Sorry.
Looking at your third example, the builtinpow, just confuses me even more. You say:
“listing each parameter forpow would be unnecessarily verbose.”
but pow takes only three parameters! If listing a mere three parameters is too verbose, then how would you describe a list of open’s eight parameters?