mirror of
https://github.com/python/cpython.git
synced 2026-06-22 19:12:50 -04:00
dc24b8a6d4
The DIALECT_GETATTR macro in dialect_new() unconditionally called PyErr_Clear() when PyObject_GetAttrString() failed, which suppressed all exceptions including MemoryError, KeyboardInterrupt, and RuntimeError. Now only AttributeError is cleared; other exceptions propagate via the existing error handling path. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Source files for standard library extension modules, and former extension modules that are now builtin modules.