Skip to content

Handle incomplete input in the interactive console - #38

Open
SAY-5 wants to merge 1 commit into
TurboGears:masterfrom
SAY-5:fix-console-incomplete-input
Open

SAY-5 wants to merge 1 commit into
TurboGears:masterfrom
SAY-5:fix-console-incomplete-input

Conversation

@SAY-5

@SAY-5 SAY-5 commented Aug 2, 2026

Copy link
Copy Markdown

Fixes #30. codeop returns None from compile to signal that more input is needed, but the wrapped compiler passed it straight to loader.register, which crashed on code.co_consts. Skipping registration for None lets the existing more/buffer logic in runsource handle multi-line input as intended.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interactive debugger console crashes on incomplete or multi-line input

1 participant