8000 [3.13] gh-123149: Suppress verbose repr in new REPL (GH-123151) by miss-islington · Pull Request #123157 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.13] gh-123149: Suppress verbose repr in new REPL (GH-123151) #123157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
gh-123149: Suppress verbose repr in new REPL (GH-123151)
(cherry picked from commit 833c58b)

Co-authored-by: James <snoopjedi@gmail.com>
  • Loading branch information
SnoopJ authored and miss-islington committed Aug 19, 2024
commit bea53eb18ec9a86fdc09664845d2b0ec3e2dd08c
4 changes: 2 additions & 2 deletions Lib/_pyrepl/readline.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,10 @@ def do(self) -> None:
class _ReadlineWrapper:
f_in: int = -1
f_out: int = -1
reader: ReadlineAlikeReader | None = None
reader: ReadlineAlikeReader | None = field(default=None, repr=False)
saved_history_length: int = -1
startup_hook: Callback | None = None
config: ReadlineConfig = field(default_factory=ReadlineConfig)
config: ReadlineConfig = field(default_factory=ReadlineConfig, repr=False)

def __post_init__(self) -> None:
if self.f_in == -1:
Expand Down
Loading
0