changeset: 102906:862761e4376e branch: 2.7 parent: 102889:ef13efb89afe user: Terry Jan Reedy date: Thu Aug 25 01:21:54 2016 -0400 files: Doc/library/idle.rst Lib/idlelib/help.html Lib/idlelib/help.py description: Issue #25564: Mention exec and __builtins__ in IDLE-console difference section. Do not print charrefs outside of the text proper (like '—»»»» '). diff -r ef13efb89afe -r 862761e4376e Doc/library/idle.rst --- a/Doc/library/idle.rst Wed Aug 24 11:14:34 2016 -0500 +++ b/Doc/library/idle.rst Thu Aug 25 01:21:54 2016 -0400 @@ -562,7 +562,9 @@ ``print`` will not work correctly. With IDLE's Shell, one enters, edits, and recalls complete statements. -Some consoles only work with a single physical line at a time. +Some consoles only work with a single physical line at a time. IDLE uses +``exec`` to run each statement. As a result, ``'__builtins__'`` is always +defined for each statement. Running without a subprocess ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff -r ef13efb89afe -r 862761e4376e Lib/idlelib/help.html --- a/Lib/idlelib/help.html Wed Aug 24 11:14:34 2016 -0500 +++ b/Lib/idlelib/help.html Thu Aug 25 01:21:54 2016 -0400 @@ -6,7 +6,7 @@ - 24.6. IDLE — Python 2.7.11 documentation + 24.6. IDLE — Python 2.7.12 documentation @@ -14,7 +14,7 @@ - + @@ -58,13 +58,13 @@ accesskey="P">previous |
  • -
  • Python »
  • +
  • Python »
  • - Python 2.7.11 documentation » + Python 2.7.12 documentation »
  • - - + + @@ -490,7 +490,7 @@ functions to be used from IDLE’s Python shell.

    24.6.3.1. Command line usage

    -
    idle.py [-c command] [-d] [-e] [-h] [-i] [-r file] [-s] [-t title] [-] [arg] ...
    +
    idle.py [-c command] [-d] [-e] [-h] [-i] [-r file] [-s] [-t title] [-] [arg] ...
     
     -c command  run command in the shell window
     -d          enable debugger and open shell window
    @@ -527,7 +527,9 @@
     IDLE’s changes are lost and things like input, raw_input, and
     print will not work correctly.

    With IDLE’s Shell, one enters, edits, and recalls complete statements. -Some consoles only work with a single physical line at a time.

    +Some consoles only work with a single physical line at a time. IDLE uses +exec to run each statement. As a result, '__builtins__' is always +defined for each statement.

    24.6.3.3. Running without a subprocess

    @@ -655,14 +657,11 @@
    @@ -686,13 +685,13 @@ >previous |
  • -
  • Python »
  • +
  • Python »
  • - Python 2.7.11 documentation » + Python 2.7.12 documentation »
  • - - + +
    diff -r ef13efb89afe -r 862761e4376e Lib/idlelib/help.py --- a/Lib/idlelib/help.py Wed Aug 24 11:14:34 2016 -0500 +++ b/Lib/idlelib/help.py Thu Aug 25 01:21:54 2016 -0400 @@ -150,7 +150,8 @@ self.text.insert('end', d, (self.tags, self.chartags)) def handle_charref(self, name): - self.text.insert('end', unichr(int(name))) + if self.show: + self.text.insert('end', unichr(int(name))) class HelpText(Text):