-
-
Notifications
You must be signed in to change notification settings - Fork 33k
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
>>> class A:
... def __getattr__(self, key):
... if key == 'foo': raise SystemExit('bye')
... def bar(self):
... foo
...
>>> A().bar()
bye
# interperter exits :(
Originally found by @millerdev in #99140 (comment)
I think that this is not ideal. We probably want to silence all errors. I have a PR ready.
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error