]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-134109: Fix showing comments in pydoc output for argparse (GH-134110) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 16 May 2025 20:56:24 +0000 (22:56 +0200)
committerGitHub <noreply@github.com>
Fri, 16 May 2025 20:56:24 +0000 (20:56 +0000)
commitf89323236f4669a5b66ed0e8b2f584cb0cb27232
treee8b6c11ef41f8446ad12d211be4481ea570828a5
parent7a5851dc902a86d76c194caede9c24e98ec70a37
[3.14] gh-134109: Fix showing comments in pydoc output for argparse (GH-134110) (GH-134112)

Comments immediately preceding the object's source code are used
if the object has no docstring.
Comments that do not describe the object should be separated from
the following source code by an empty line.
(cherry picked from commit 71cf4dd622832848cace358a7f8444243afd2e83)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/argparse.py