Skip to content

IDLE: Shell calltips bugged by printed unclosed "(''' " #105689

Description

@SectorCorruptor

When executing

help()

and giving an input of, say, ghi to the prompt, help terminates with an error.

However, the IDLE calltip for help changes from

(*args, **kwds)
Define the builtin 'help'

to

Import can't find module, or can't find name in module.

(This is after ending the help session and typing help()

What is weird is that if I do the same thing again, except that I provide an input of abc, as an example of a valid name, the calltip restores back to what it originally was.

Besides, the calltip also changes for other names. If I reproduce this issue, and then I type print(, the same calltip

Import can't find module, or can't find name in module.

comes.

Is this intended behaviour?

NOTE: This behaviour is not specific to help. See #105689 (comment).

My environment

  • CPython versions tested on: 3.11.3
  • Operating system and architecture: Windows 11

(Note: I wanted to attach a picture, but calltips go away as soon as I take a screenshot)

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

topic-IDLEtype-bugAn unexpected behavior, bug, or error

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions