Author: kurt.kaiser
Date: Fri Dec 28 04:57:56 2007
New Revision: 59603

Modified:
   python/branches/py3k/Lib/idlelib/NEWS.txt
   python/branches/py3k/Lib/idlelib/PyShell.py
   python/branches/py3k/Lib/idlelib/run.py
Log:
help() was not paging to the shell.  Issue1650.


Modified: python/branches/py3k/Lib/idlelib/NEWS.txt
==============================================================================
--- python/branches/py3k/Lib/idlelib/NEWS.txt   (original)
+++ python/branches/py3k/Lib/idlelib/NEWS.txt   Fri Dec 28 04:57:56 2007
@@ -1,7 +1,9 @@
 What's New in IDLE 3.0a3?
 =========================
 
-*Release date: XX-XXX-200X*
+*Release date: XX-XXX-2008*
+
+- help() was not paging to the shell.  Issue1650.
 
 - CodeContext was not importing.
 

Modified: python/branches/py3k/Lib/idlelib/PyShell.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/PyShell.py (original)
+++ python/branches/py3k/Lib/idlelib/PyShell.py Fri Dec 28 04:57:56 2007
@@ -828,6 +828,14 @@
             sys.stdout = self.stdout
             sys.stderr = self.stderr
             sys.stdin = self
+        try:
+            # page help() text to shell.
+            import pydoc # import must be done here to capture i/o rebinding.
+            # XXX KBK 27Dec07 use a textView someday, but must work w/o subproc
+            pydoc.pager = pydoc.plainpager
+        except:
+            sys.stderr = sys.__stderr__
+            raise
         #
         self.history = self.History(self.text)
         #

Modified: python/branches/py3k/Lib/idlelib/run.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/run.py     (original)
+++ python/branches/py3k/Lib/idlelib/run.py     Fri Dec 28 04:57:56 2007
@@ -247,6 +247,9 @@
         sys.stdin = self.console = self.get_remote_proxy("stdin")
         sys.stdout = self.get_remote_proxy("stdout")
         sys.stderr = self.get_remote_proxy("stderr")
+        # page help() text to shell.
+        import pydoc # import must be done here to capture i/o binding
+        pydoc.pager = pydoc.plainpager
         from idlelib import IOBinding
         sys.stdin.encoding = sys.stdout.encoding = \
                              sys.stderr.encoding = IOBinding.encoding
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to