-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-109252: Remove leading whitespace email #122617
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
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 |
…ythonGH-122577) The `PyStructSequence` destructor would crash if it was deallocated after its type's dictionary was cleared by the GC, because it couldn't compute the "real size" of the instance. This could occur with relatively straightforward code in the free-threaded build or with a reference cycle involving the type in the default build, due to differing orders in which `tp_clear()` was called. Account for the non-sequence fields in `tp_basicsize` and use that, along with `Py_SIZE()`, to compute the "real" size of a `PyStructSequence` in the dealloc function. This avoids the accesses to the type's dictionary during dealloc, which were unsafe.
| @@ -0,0 +1 @@ | |||
| Fixed an existing issue with email header lib adding whitespace | |||
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.
I don't like how this entry is worded. How about something like this?
| Fixed an existing issue with email header lib adding whitespace | |
| Fixed :mod:`email` preserving leading whitespace in wrapped headers. |
|
Looks like this doesn't fully fix #109252. The original reproducer still gives the same error. |
Fixed an existing old issue with the whitespace by making a small change. This is my first PR to cpython so thanks for taking the time to review this and opening the issue.