[issue44967] pydoc should return non-zero exit code when a query is not found

2021-08-20 Thread Gregory Anders
Change by Gregory Anders : -- keywords: +patch pull_requests: +26323 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27868 ___ Python tracker <https://bugs.python.org/issu

[issue44967] pydoc should return non-zero exit code when a query is not found

2021-08-20 Thread Gregory Anders
New submission from Gregory Anders : Currently pydoc returns an exit code of zero no matter what, even with e.g. pydoc lsjdfkdfj However, the ability to know whether or not pydoc successfully found a result is useful in tools that embed pydoc in some way. Here's one use case: Vim