Skip to content

gh-146230: Fix copy/paste mistake in binascii.c#1

Merged
ashutoshk314 merged 92 commits intoashutoshk314:mainfrom
python:main
Mar 27, 2026
Merged

gh-146230: Fix copy/paste mistake in binascii.c#1
ashutoshk314 merged 92 commits intoashutoshk314:mainfrom
python:main

Conversation

@ashutoshk314
Copy link
Copy Markdown
Owner

Fix a copy/paste mistake in binascii.c

Issue: python#146230

vstinner and others added 30 commits March 20, 2026 18:12
…gh-146229)

Also fix a few related issues in the pyatomic headers:

* Fix _Py_atomic_store_uint_release in pyatomic_msc.h to use __stlr32
  on ARM64 instead of a plain volatile store (which is only relaxed on
  ARM64).

* Add missing _Py_atomic_store_uint_release to pyatomic_gcc.h.

* Fix pseudo-code comment for _Py_atomic_store_ptr_release in
  pyatomic.h.
* Apply changes from importlib_metadata 8.9.0
* Suppress deprecation warning in fork.
* Merge GET_ITER and GET_YIELD_FROM_ITER. Modify SEND to make it a bit more like FOR_ITER
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
…`shell=True` (#138536)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
…ey` (#146154)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…cking of such tuples (GH-144300)

Co-authored-by: Ken Jin <kenjin4096@gmail.com>
Add base32 encoder and decoder functions implemented in
C to the binascii module and use them to greatly improve the
performance and reduce the memory usage of the existing
base32 codec functions in the base64 module.
…ad (GH-145267)

Base64 decoder (see binascii.a2b_base64(), base64.b64decode(), etc)
no longer ignores excess data after the first padded quad in non-strict
(default) mode.  Instead, in conformance with RFC 4648, it ignores the
pad character, "=", if it is present before the end of the encoded data.
Use more regular code to handle reference counting in
treebuilder_handle_end().

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Add `_SimpleCData._type_` docs.

Add type codes to the summary table.

Cross-link `struct`, `array`, and `ctypes`; throw in `numpy` too.
(Anyone wanting to add a code should be aware of those.)

Add `py_object`, and `VARIANT_BOOL` for completeness.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…Timed` (gh-146064)

Add atomic loads in the slow path of PyMutex to increase the number
of lock acquisitions per second that threads can make on a shared mutex.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5c0dcb3e0d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +645 to 647
extra=None, server=None, context=None):
return _ProactorSocketTransport(self, sock, protocol, waiter,
extra, server)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Propagate context into Proactor socket transport callbacks

BaseEventLoop._create_connection_transport() and Server._start_serving() now pass an explicit context, but the Proactor implementation drops it here, so connection_made/connection_lost callbacks run in the ambient scheduling context instead of the captured connection/server context. On Windows this breaks the new contextvars-isolation behavior (for example when a server is created in one context and started/used in another), and makes Proactor semantics diverge from SelectorEventLoop.

Useful? React with 👍 / 👎.

serhiy-storchaka and others added 21 commits March 26, 2026 21:29
Use uniform standard signature syntax in the tutorial and in
the array and collections modules documentation.
…#146447)

Modifies the iOS build script so that the clean target is more selective about
what is cleaned, the test target has a valid fallback value for ci mode, and the
cross-build directory can be customised.
Add --pythoninfo option to dump build information.
… iOS XCframeworks (#146499)

Ensure that multi-arch libpython dylibs aren't copied into the app, and the
standard lib is always found for framework post-processing.
Migrate the Apple/iOS XCframework build tools to the Platforms directory.
Remove {"key": data}, it's not required to reproduce the bug.
Simplify also deep_nested_struct(): remove the seed parameter.
Fix a typo in a comment.
This reverts commit 68c7fad.

It looks like on practice the __STDC_IEC_559__ doesn't indicate
conformance to the standard. It can't be used to filter out tests
or to give some promises in documentation. See discussion in
the reverted PR thread:
#138811 (comment)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
If _PyErr_SetKeyError() is called with an exception set, it now
replaces the current exception with KeyError (as expected), instead
of setting a SystemError or failing with a fatal error (in debug
mode).
…tail-calling interpreter (#146391)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Recognise *-gnu (after *-linux*) as GNU/Hurd for cross-compilation.
…be cleaned up by `_POP_TOP` be cleaned up by `_POP_TOP` (GH-146383)
@ashutoshk314 ashutoshk314 merged commit 9ba65f6 into ashutoshk314:main Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.