gh-81949: IDLE: show help(object) output in a text viewing window by taleinat · Pull Request #15140 · python/cpython · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions Lib/idlelib/pyshell.py
5 changes: 2 additions & 3 deletions Lib/idlelib/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,8 @@ def handle(self):
iomenu.encoding, "backslashreplace")

sys.displayhook = rpc.displayhook
# page help() text to shell.
import pydoc # import must be done here to capture i/o binding
pydoc.pager = pydoc.plainpager
import pydoc # import must be done here to capture i/o binding
pydoc.pager = self.console.pager

# Keep a reference to stdin so that it won't try to exit IDLE if
# sys.stdin gets changed from within IDLE's shell. See issue17838.
Expand Down
Loading