This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients terry.reedy
Date 2015-04-22.16:57:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429721880.11.0.245757615571.issue24028@psf.upfronthosting.co.za>
In-reply-to
Content
The doc currently says, in the Edit menu section,

Show call tip
    After an unclosed parenthesis for a function, open a small window with function parameter hints.

I propose to add the additional information I gave in answer to https://stackoverflow.com/questions/29784273/python-idle-wont-show-docstring, in a subsubsection before or after the current one on completions https://docs.python.org/3/library/idle.html#completions  

'''
Calltips are shown when one types '(' after the name of an *acccessible* function.  The calltip should stay displayed until one types ')' or clicks the mouse or otherwise moves the cursor to dismiss it.  Cntl-\ brings it back.

A calltip consists of the function signature and the first line of the docstring.  For builtins without an accessible signature (such as, in 3.4.3, `int` or `bytes`), the calltip consists of all lines up the fifth line or the first blank line.

The set of *accessible* functions depends on what modules have been imported into the user process (where your code is executed), including those imported by Idle itself, and what code has been run (since the last restart).  For example, restart the Shell (Cntl-F6), open a new editor window, and enter

    itertools.count(

A calltip appears because Idle imports itertools into the user process for its own use.  Enter

    turtle.write(

and nothing appears, because the Idle does not import turtle.  Cntl-\ does nothing either.  Entering

    import turtle

above the function call does not immediately help, but if one runs the file to perform the import, calltips for turtle functions become available.

The suggests that one might want to run a file after writing the import statements at the top, or immediately run an existing file before editing.
'''
History
Date User Action Args
2015-04-22 16:58:00terry.reedysetrecipients: + terry.reedy
2015-04-22 16:58:00terry.reedysetmessageid: <1429721880.11.0.245757615571.issue24028@psf.upfronthosting.co.za>
2015-04-22 16:57:59terry.reedylinkissue24028 messages
2015-04-22 16:57:59terry.reedycreate