https://github.com/python/cpython/commit/98c7196977f08fe87a3f4a7ddc3aaa8613f0ad18 commit: 98c7196977f08fe87a3f4a7ddc3aaa8613f0ad18 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: pablogsal <[email protected]> date: 2024-08-19T19:28:12Z summary:
[3.13] gh-123149: Suppress verbose repr in new REPL (GH-123151) (#123157) gh-123149: Suppress verbose repr in new REPL (GH-123151) (cherry picked from commit 833c58b81ebec84dc24ef0507f8c75fe723d9f66) Co-authored-by: James <[email protected]> files: M Lib/_pyrepl/readline.py diff --git a/Lib/_pyrepl/readline.py b/Lib/_pyrepl/readline.py index 3d94f91753587e..143770a885a2c2 100644 --- a/Lib/_pyrepl/readline.py +++ b/Lib/_pyrepl/readline.py @@ -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: _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
