File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11What's New in IDLE 3.0a3?
22=========================
33
4- *Release date: XX-XXX-200X*
4+ *Release date: XX-XXX-2008*
5+
6+ - help() was not paging to the shell. Issue1650.
57
68- CodeContext was not importing.
79
Original file line number Diff line number Diff line change @@ -828,6 +828,14 @@ def __init__(self, flist=None):
828828 sys .stdout = self .stdout
829829 sys .stderr = self .stderr
830830 sys .stdin = self
831+ try :
832+ # page help() text to shell.
833+ import pydoc # import must be done here to capture i/o rebinding.
834+ # XXX KBK 27Dec07 use a textView someday, but must work w/o subproc
835+ pydoc .pager = pydoc .plainpager
836+ except :
837+ sys .stderr = sys .__stderr__
838+ raise
831839 #
832840 self .history = self .History (self .text )
833841 #
Original file line number Diff line number Diff line change @@ -247,6 +247,9 @@ def handle(self):
247247 sys .stdin = self .console = self .get_remote_proxy ("stdin" )
248248 sys .stdout = self .get_remote_proxy ("stdout" )
249249 sys .stderr = self .get_remote_proxy ("stderr" )
250+ # page help() text to shell.
251+ import pydoc # import must be done here to capture i/o binding
252+ pydoc .pager = pydoc .plainpager
250253 from idlelib import IOBinding
251254 sys .stdin .encoding = sys .stdout .encoding = \
252255 sys .stderr .encoding = IOBinding .encoding
You can’t perform that action at this time.
0 commit comments