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 @@
- 24.6. IDLE — Python 2.7.11 documentation[](#l2.7)
- 24.6. IDLE — Python 2.7.12 documentation[](#l2.8)
@@ -14,7 +14,7 @@ <link rel="search" type="application/opensearchdescription+xml"
title="Search within Python 2.7.11 documentation"[](#l2.25)
[](#l2.28) [](#l2.29)title="Search within Python 2.7.12 documentation"[](#l2.26) href="../_static/opensearch.xml"/>[](#l2.27)
- [](#l2.30)
- [](#l2.31) [](#l2.32) [](#l2.33) [](#l2.34) @@ -58,13 +58,13 @@[](#l2.35) accesskey="P">previous | [](#l2.36)
<li><a href="https://www.python.org/">Python</a> »</li>[](#l2.39)
<li><a href="https://www.python.org/">Python</a> »</li>[](#l2.40) <li>[](#l2.41)
<a href="../index.html">Python 2.7.11 documentation</a> »[](#l2.42)
<a href="../index.html">Python 2.7.12 documentation</a> »[](#l2.43) </li>[](#l2.44)
<li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> »</li>[](#l2.46)
<li class="nav-item nav-item-2"><a href="tk.html" accesskey="U">24. Graphical User Interfaces with Tk</a> »</li>[](#l2.47)
<li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> »</li>[](#l2.48)
[](#l2.51) [](#l2.52) @@ -490,7 +490,7 @@ executed in the Tk namespace, so this fi[](#l2.53) functions to be used from IDLE’s Python shell.[](#l2.54)<li class="nav-item nav-item-2"><a href="tk.html" accesskey="U">24. Graphical User Interfaces with Tk</a> »</li>[](#l2.49) </ul>[](#l2.50)
[](#l2.55)24.6.3.1. Command line usage¶
[](#l2.56) -idle.py [-c command] [-d] [-e] [-h] [-i] [-r file] [-s] [-t title] [-] [arg] ...[](#l2.57) +
[](#l2.70)idle.py [-c command] [-d] [-e] [-h] [-i] [-r file] [-s] [-t title] [-] [arg] ...[](#l2.58) [](#l2.59) -c command run command in the shell window[](#l2.60) -d enable debugger and open shell window[](#l2.61) @@ -527,7 +527,9 @@ and screen will not work. If
input
,raw_input
, and[](#l2.63)print
will not work correctly.[](#l2.64)With IDLE’s Shell, one enters, edits, and recalls complete statements.[](#l2.65) -Some consoles only work with a single physical line at a time.
[](#l2.66) +Some consoles only work with a single physical line at a time. IDLE uses[](#l2.67) +exec
to run each statement. As a result,'__builtins__'
is always[](#l2.68) +defined for each statement.[](#l2.69)[](#l2.71)24.6.3.3. Running without a subprocess¶
[](#l2.72) @@ -655,14 +657,11 @@ are currently:[](#l2.73)[](#l2.74)Quick search
[](#l2.75) [](#l2.76)
<input type="text" name="q" />[](#l2.77)
<input type="submit" value="Go" />[](#l2.78)
<div><input type="text" name="q" /></div>[](#l2.79)
[](#l2.83)<div><input type="submit" value="Go" /></div>[](#l2.80) <input type="hidden" name="check_keywords" value="yes" />[](#l2.81) <input type="hidden" name="area" value="default" />[](#l2.82)

[](#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)
--- 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):
self.text.insert('end', unichr(int(name)))[](#l3.7)
if self.show:[](#l3.8)
self.text.insert('end', unichr(int(name)))[](#l3.9)