Daehee Kim
0ef84b0e2b
gh-126209: Fix inconsistency of `skip_file_prefixes` in `warnings.warn`'s C and Python implementations (GH-126329)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2024-11-12 13:01:56 +01:00
Gregory P. Smith
052f53d65d
gh-39615: Add warnings.warn() skip_file_prefixes support ( #100840 )
...
`warnings.warn()` gains the ability to skip stack frames based on code
filename prefix rather than only a numeric `stacklevel=` via a new
`skip_file_prefixes=` keyword argument.
2023-01-27 18:35:14 -08:00
Steve Dower
45fd95155f
Merge from 3.5
2015-09-06 22:31:26 -07:00
Larry Hastings
714e49371b
Issue #24305 : Prevent import subsystem stack frames from being counted
...
by the warnings.warn(stacklevel=) parameter.
2015-09-06 00:39:37 -07:00