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

Serhiy Storchaka storchaka at gmail.com
Sun Sep 20 09:20:07 CEST 2015


субота, 19-вер-2015 23:55:44 Nathaniel Smith написано:
> OTOH I guess if there is anyone out there who's intentionally using
> stacklevel=1 they might be reasonably surprised at this change.

That is why I ask on Python-Dev instead of just open an issue.

But I doubt that there is such case.
 


More information about the Python-Dev mailing list