gh-124022: Fix bug where class docstring is removed in interactive mode#124023
Conversation
… interactive mode
JelleZijlstra
left a comment
There was a problem hiding this comment.
Thanks, some small suggestions
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.