You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Avoid duplicate PyREPL hook registration and clarify hook names #26146
The PyREPL exception and display hooks in python_files/pythonrc.py are registered twice. Their current my_excepthook and my_displayhook names also do not communicate that they provide VS Code integration, which makes the registration flow harder to understand and maintain.
Expected behavior
The hooks should have a single registration path, and their names should clearly describe their VS Code-specific purpose.
Acceptance criteria
Register the PyREPL exception and display hooks exactly once.
Rename the hooks to clearly identify their VS Code integration role.
Update the related shell integration tests to use and verify the descriptive names.
Activity
Pythonrc: Don't register PyREPL hooks twice (#26145)