gh-124022: Fix bug where class docstring is removed in interactive mode#124023
gh-124022: Fix bug where class docstring is removed in interactive mode#124023iritkatriel merged 9 commits intopython:mainfrom
Conversation
… interactive mode
JelleZijlstra
left a comment
There was a problem hiding this comment.
Thanks, some small suggestions
Misc/NEWS.d/next/Core_and_Builtins/2024-09-12-21-53-26.gh-issue-124022.fQzUiW.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
A number of tests are failing. The issue is that now string literals in the REPL are interpreted as docstrings: I now also understand why I made the change. I changed the code so that Interactive_kind uses A more robust solution would be to add a parameter to |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
…interactive mode (python#124023)" This reverts commit a9594a3.
Fixes #124022.
Class docstring is removed in interactive mode, but since the
first_instris not bumped to 1, this ends up being aNOPwith the line number of the docstring.