|
5 | 5 | <head> |
6 | 6 | <meta charset="utf-8" /> |
7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
8 | | - <title>IDLE — Python 3.10.0a5 documentation</title> |
| 8 | + <title>IDLE — Python 3.10.0a6 documentation</title> |
9 | 9 | <link rel="stylesheet" href="../_static/pydoctheme.css" type="text/css" /> |
10 | 10 | <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> |
11 | 11 |
|
|
18 | 18 | <script src="../_static/sidebar.js"></script> |
19 | 19 |
|
20 | 20 | <link rel="search" type="application/opensearchdescription+xml" |
21 | | - title="Search within Python 3.10.0a5 documentation" |
| 21 | + title="Search within Python 3.10.0a6 documentation" |
22 | 22 | href="../_static/opensearch.xml"/> |
23 | 23 | <link rel="author" title="About these documents" href="../about.html" /> |
24 | 24 | <link rel="index" title="Index" href="../genindex.html" /> |
@@ -71,7 +71,7 @@ <h3>Navigation</h3> |
71 | 71 |
|
72 | 72 |
|
73 | 73 | <li id="cpython-language-and-version"> |
74 | | - <a href="../index.html">3.10.0a5 Documentation</a> » |
| 74 | + <a href="../index.html">3.10.0a6 Documentation</a> » |
75 | 75 | </li> |
76 | 76 |
|
77 | 77 | <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> »</li> |
@@ -632,8 +632,15 @@ <h3>Startup failure<a class="headerlink" href="#startup-failure" title="Permalin |
632 | 632 | code execution process. A connection must be established whenever the Shell |
633 | 633 | starts or restarts. (The latter is indicated by a divider line that says |
634 | 634 | ‘RESTART’). If the user process fails to connect to the GUI process, it |
635 | | -displays a <code class="docutils literal notranslate"><span class="pre">Tk</span></code> error box with a ‘cannot connect’ message that directs the |
636 | | -user here. It then exits.</p> |
| 635 | +usually displays a <code class="docutils literal notranslate"><span class="pre">Tk</span></code> error box with a ‘cannot connect’ message |
| 636 | +that directs the user here. It then exits.</p> |
| 637 | +<p>One specific connection failure on Unix systems results from |
| 638 | +misconfigured masquerading rules somewhere in a system’s network setup. |
| 639 | +When IDLE is started from a terminal, one will see a message starting |
| 640 | +with <code class="docutils literal notranslate"><span class="pre">**</span> <span class="pre">Invalid</span> <span class="pre">host:</span></code>. |
| 641 | +The valid value is <code class="docutils literal notranslate"><span class="pre">127.0.0.1</span> <span class="pre">(idlelib.rpc.LOCALHOST)</span></code>. |
| 642 | +One can diagnose with <code class="docutils literal notranslate"><span class="pre">tcpconnect</span> <span class="pre">-irv</span> <span class="pre">127.0.0.1</span> <span class="pre">6543</span></code> in one |
| 643 | +terminal window and <code class="docutils literal notranslate"><span class="pre">tcplisten</span> <span class="pre"><same</span> <span class="pre">args></span></code> in another.</p> |
637 | 644 | <p>A common cause of failure is a user-written file with the same name as a |
638 | 645 | standard library module, such as <em>random.py</em> and <em>tkinter.py</em>. When such a |
639 | 646 | file is located in the same directory as a file that is about to be run, |
@@ -664,6 +671,12 @@ <h3>Startup failure<a class="headerlink" href="#startup-failure" title="Permalin |
664 | 671 | <p>If IDLE quits with no message, and it was not started from a console, try |
665 | 672 | starting it from a console or terminal (<code class="docutils literal notranslate"><span class="pre">python</span> <span class="pre">-m</span> <span class="pre">idlelib</span></code>) and see if |
666 | 673 | this results in an error message.</p> |
| 674 | +<p>On Unix-based systems with tcl/tk older than <code class="docutils literal notranslate"><span class="pre">8.6.11</span></code> (see |
| 675 | +<code class="docutils literal notranslate"><span class="pre">About</span> <span class="pre">IDLE</span></code>) certain characters of certain fonts can cause |
| 676 | +a tk failure with a message to the terminal. This can happen either |
| 677 | +if one starts IDLE to edit a file with such a character or later |
| 678 | +when entering such a character. If one cannot upgrade tcl/tk, |
| 679 | +then re-configure IDLE to use a font that works better.</p> |
667 | 680 | </div> |
668 | 681 | <div class="section" id="running-user-code"> |
669 | 682 | <h3>Running user code<a class="headerlink" href="#running-user-code" title="Permalink to this headline">¶</a></h3> |
@@ -958,7 +971,7 @@ <h3>Navigation</h3> |
958 | 971 |
|
959 | 972 |
|
960 | 973 | <li id="cpython-language-and-version"> |
961 | | - <a href="../index.html">3.10.0a5 Documentation</a> » |
| 974 | + <a href="../index.html">3.10.0a6 Documentation</a> » |
962 | 975 | </li> |
963 | 976 |
|
964 | 977 | <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> »</li> |
@@ -990,7 +1003,7 @@ <h3>Navigation</h3> |
990 | 1003 | <br /> |
991 | 1004 | <br /> |
992 | 1005 |
|
993 | | - Last updated on Feb 23, 2021. |
| 1006 | + Last updated on Mar 29, 2021. |
994 | 1007 | <a href="https://docs.python.org/3/bugs.html">Found a bug</a>? |
995 | 1008 | <br /> |
996 | 1009 |
|
|
0 commit comments