mirror of
https://github.com/python/cpython.git
synced 2026-05-14 00:18:52 -04:00
914cde89d4
Issue #26567: * Add a new function PyErr_ResourceWarning() function to pass the destroyed object * Add a source attribute to warnings.WarningMessage * Add warnings._showwarnmsg() which uses tracemalloc to get the traceback where source object was allocated.