-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-126209: Fix inconsistency of skip_file_prefixes
in warnings.warn
's C and Python implementations
#126329
Conversation
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
a2caf9a
to
3bd3350
Compare
skip_file_prefixes
in warnings.warn
's C and Python implementations
Some tips: could you avoid force-pushing your commits in the future please? It makes reviewing harder (see https://devguide.python.org/getting-started/pull-request-lifecycle). Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could add a test for skip_file_prefixes
?
Misc/NEWS.d/next/Core_and_Builtins/2024-11-02-18-01-31.gh-issue-126209.2ZIhrS.rst
Outdated
Show resolved
Hide resolved
…e-126209.2ZIhrS.rst Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>
My apology. I will avoid force-pushing as you said. |
Co-authored-by: Bénédikt Tran <[email protected]>
Misc/NEWS.d/next/Core_and_Builtins/2024-11-02-18-01-31.gh-issue-126209.2ZIhrS.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Kirill Podoprigora <[email protected]>
__file__
. #126209I think setting the argument
end=-1
the functiontailmatch
may cause undefined behavior. Most oftailmatch
functions I've seen are used withend=PY_SSIZE_T_MAX
and never seenend=-1
except for this case.hopefully I will help