Skip to content

Conversation

@Wulian233
Copy link
Contributor

@Wulian233 Wulian233 commented Aug 31, 2024

In the Shell, you can call exit() and quit() to close the Shell.
If the new interactive interpreter is enabled,
IDLE also supports using exit and quit without the need to call them
as functions. If this is the only window, closing it will also exit IDLE.

2024-08-31 104854

This solution is simple, just replaces what was entered

Not change help.html


📚 Documentation preview 📚: https://cpython-previews--123525.org.readthedocs.build/

@Wulian233 Wulian233 requested a review from terryjreedy as a code owner August 31, 2024 02:47
@Wulian233 Wulian233 changed the title gh-123369: gh-123369: IDLE now support for REPL-specific commands, like help, exit, license and quit, without the need to call them as functions gh-123369: IDLE now support for REPL-specific commands, like help exit license and quit without the need to call them as functions Aug 31, 2024
you want to quit execution.

In the Shell, you can call ``exit()`` or ``quit()`` to close the Shell.
If the :ref:`new interactive interpreter <tut-interac>` is enabled,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is misleading, since it does not use it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use the PYTHON_BASIC_REPL environment variable here to decide whether to enable this feature. If PYTHON_BASIC_REPL is set, the new interactive interpreter will not be enabled, also this feature

@Wulian233 Wulian233 reopened this Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants