Get Traceback of warnings
You can get what you want by assigning to warnings.showwarning. The warnings module documentation itself recommends that you do that, so it’s not that you’re being tempted by the dark side of the source. 🙂 You may replace this function with an alternative implementation by assigning to warnings.showwarning. You can define a new function that … Read more