cpython/Misc/NEWS.d/next/Library/2018-04-28-08-11-35.bpo-333...

5 lines
253 B
ReStructuredText

The warnings module now finds the Python file associated with a warning from
the code object, rather than the frame's global namespace. This is
consistent with how tracebacks and pdb find filenames, and should work
better for dynamically executed code.