Skip to content

gh-124022: Fix bug where class docstring is removed in interactive mode - #124023

Merged
iritkatriel merged 9 commits into
python:mainfrom
iritkatriel:gh-124022
Sep 13, 2024
Merged

iritkatriel merged 9 commits into
python:mainfrom
iritkatriel:gh-124022

Conversation

@iritkatriel

@iritkatriel iritkatriel commented Sep 12, 2024 •

Copy link
Copy Markdown
Member

Fixes #124022.

Class docstring is removed in interactive mode, but since the first_instr is not bumped to 1, this ends up being a NOP with the line number of the docstring.

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

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

class docstring is removed in interactive mode

3 participants