https://github.com/python/cpython/commit/833c58b81ebec84dc24ef0507f8c75fe723d9f66
commit: 833c58b81ebec84dc24ef0507f8c75fe723d9f66
branch: main
author: James <[email protected]>
committer: pablogsal <[email protected]>
date: 2024-08-19T20:04:38+01:00
summary:

gh-123149: Suppress verbose repr in new REPL (#123151)

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]

Reply via email to