[Python-ideas] [Python-Dev] Make stacklevel=2 by default in warnings.warn()

Steven D'Aprano steve at pearwood.info
Sun Sep 20 09:34:23 CEST 2015

On Sat, Sep 19, 2015 at 11:55:44PM -0700, Nathaniel Smith wrote:

> I don't have enough fingers to count how many times I've had to
> explain how stacklevel= works to maintainers of widely-used packages
> -- they had no idea that this was even a thing they were getting
> wrong.

Count me in that. I had no idea it was even a thing.


More information about the Python-ideas mailing list