You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
Note that IDLE itself places quite a few modules in sys.modules, so
418
418
much can be found by default, e.g. the re module.</p>
419
419
<p>If you don’t like the ACW popping up unbidden, simply make the delay
420
-
longer or disable the extension. Or another option is the delay could
421
-
be set to zero. Another alternative to preventing ACW popups is to
422
-
disable the call tips extension.</p>
420
+
longer or disable the extension.</p>
421
+
</div>
422
+
<divclass="section" id="calltips">
423
+
<h3>25.5.2.3. Calltips<aclass="headerlink" href="#calltips" title="Permalink to this headline">¶</a></h3>
424
+
<p>A calltip is shown when one types <ttclass="kbd docutils literal"><spanclass="pre">(</span></tt> after the name of an <em>acccessible</em>
425
+
function. A name expression may include dots and subscripts. A calltip
426
+
remains until it is clicked, the cursor is moved out of the argument area,
427
+
or <ttclass="kbd docutils literal"><spanclass="pre">)</span></tt> is typed. When the cursor is in the argument part of a definition,
428
+
the menu or shortcut display a calltip.</p>
429
+
<p>A calltip consists of the function signature and the first line of the
430
+
docstring. For builtins without an accessible signature, the calltip
431
+
consists of all lines up the fifth line or the first blank line. These
432
+
details may change.</p>
433
+
<p>The set of <em>accessible</em> functions depends on what modules have been imported
434
+
into the user process, including those imported by Idle itself,
435
+
and what definitions have been run, all since the last restart.</p>
436
+
<p>For example, restart the Shell and enter <ttclass="docutils literal"><spanclass="pre">itertools.count(</span></tt>. A calltip
437
+
appears because Idle imports itertools into the user process for its own use.
438
+
(This could change.) Enter <ttclass="docutils literal"><spanclass="pre">turtle.write(</span></tt> and nothing appears. Idle does
439
+
not import turtle. The menu or shortcut do nothing either. Enter
440
+
<ttclass="docutils literal"><spanclass="pre">import</span><spanclass="pre">turtle</span></tt> and then <ttclass="docutils literal"><spanclass="pre">turtle.write(</span></tt> will work.</p>
441
+
<p>In an editor, import statements have no effect until one runs the file. One
442
+
might want to run a file after writing the import statements at the top,
443
+
or immediately run an existing file before editing.</p>
423
444
</div>
424
445
<divclass="section" id="python-shell-window">
425
-
<h3>25.5.2.3. Python Shell window<aclass="headerlink" href="#python-shell-window" title="Permalink to this headline">¶</a></h3>
446
+
<h3>25.5.2.4. Python Shell window<aclass="headerlink" href="#python-shell-window" title="Permalink to this headline">¶</a></h3>
0 commit comments