Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The new REPL outputs different tracebeck when custom sys.excepthook is used #122478

Closed
Labels
topic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error
@serhiy-storchaka

Description

@serhiy-storchaka

Bug report

Ifsys.systemhook is notsys.__systemhook__, the new REPL outputs the line in the code module in the traceback:

>>> xxxTraceback (most recent call last):  File "<python-input-0>", line 1, in <module>    xxxNameError: name 'xxx' is not defined>>>import sys; sys.excepthook =lambda*args: sys.__excepthook__(*args)>>> xxxTraceback (most recent call last):  File "/home/serhiy/py/cpython/Lib/code.py", line 91, in runcode    exec(code, self.locals)    ~~~~^^^^^^^^^^^^^^^^^^^  File "<python-input-2>", line 1, in <module>    xxxNameError: name 'xxx' is not defined

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp