cpython: 862761e4376e (original) (raw)

Mercurial > cpython

changeset 102906:862761e4376e 2.7

Issue #25564: Mention exec and __builtins__ in IDLE-console difference section. Do not print charrefs outside of the text proper (like '—»»»» '). [#25564]

Terry Jan Reedy tjreedy@udel.edu
date Thu, 25 Aug 2016 01:21:54 -0400
parents ef13efb89afe
children 24e580e667fb
files Doc/library/idle.rst Lib/idlelib/help.html Lib/idlelib/help.py
diffstat 3 files changed, 25 insertions(+), 23 deletions(-)[+] [-] Doc/library/idle.rst 4 Lib/idlelib/help.html 41 Lib/idlelib/help.py 3

line wrap: on

line diff

--- a/Doc/library/idle.rst +++ b/Doc/library/idle.rst @@ -562,7 +562,9 @@ IDLE's changes are lost and things like 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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

--- a/Lib/idlelib/help.html +++ b/Lib/idlelib/help.html @@ -6,7 +6,7 @@

@@ -14,7 +14,7 @@ <link rel="search" type="application/opensearchdescription+xml"

[](#l2.87) [](#l2.88) [](#l2.89) @@ -686,13 +685,13 @@ are currently:

[](#l2.90) >previous |[](#l2.91)
  • [](#l2.93) -
  • Python »
  • [](#l2.94) +
  • Python »
  • [](#l2.95)
  • [](#l2.96) - Python 2.7.11 documentation »[](#l2.97) + Python 2.7.12 documentation »[](#l2.98)
  • [](#l2.99) [](#l2.100) -
  • The Python Standard Library »
  • [](#l2.101) -
  • 24. Graphical User Interfaces with Tk »
  • [](#l2.102) +
  • The Python Standard Library »
  • [](#l2.103) +
  • 24. Graphical User Interfaces with Tk »
  • [](#l2.104) [](#l2.105) [](#l2.106)
    [](#l2.107) @@ -701,10 +700,10 @@ are currently:

    [](#l2.108) The Python Software Foundation is a non-profit corporation.[](#l2.109) Please donate.[](#l2.110)
    [](#l2.111) - Last updated on May 02, 2016.[](#l2.112) + Last updated on Aug 25, 2016.[](#l2.113) Found a bug?[](#l2.114)
    [](#l2.115) - Created using Sphinx 1.3.3.[](#l2.116) + Created using Sphinx 1.4.6.[](#l2.117)
    [](#l2.118) [](#l2.119) [](#l2.120)

    --- a/Lib/idlelib/help.py +++ b/Lib/idlelib/help.py @@ -150,7 +150,8 @@ class HelpParser(HTMLParser): self.text.insert('end', d, (self.tags, self.chartags)) def handle_charref(self, name):

    class HelpText(Text):