Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pybind/pybind11
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0rc3
Choose a base ref
...
head repository: pybind/pybind11
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.0rc4
Choose a head ref
  • 17 commits
  • 33 files changed
  • 11 contributors

Commits on Jun 6, 2025

  1. test: run pytest under Python devmode (#5715)

    * test: run pytest under Python devmode
    
    * test: skip segfault bug with 3.14.0b1/2
    
    * test: skip segfault bug with 3.14.0b1/2
    
    * test: unset CMAKE_BUILD_PARALLEL_LEVEL
    XuehaiPan authored Jun 6, 2025
    Configuration menu
    Copy the full SHA
    6c5d25a View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2025

  1. chore(deps): bump requests from 2.32.3 to 2.32.4 in /docs (#5720)

    Bumps [requests](https://github.com/psf/requests) from 2.32.3 to 2.32.4.
    - [Release notes](https://github.com/psf/requests/releases)
    - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
    - [Commits](psf/requests@v2.32.3...v2.32.4)
    
    ---
    updated-dependencies:
    - dependency-name: requests
      dependency-version: 2.32.4
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 10, 2025
    Configuration menu
    Copy the full SHA
    ff0e381 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    513d1f9 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2025

  1. fix: add support for const-only smart pointers (#5718)

    * add support for const pointers in smart pointers
    
    * use c++11 compatible code
    
    * add template parameter in test
    
    * Make the const-removal clearly visible. This simplifies the production code changes significantly.
    
    For background see: https://claude.ai/share/4085d9ab-a859-44cc-bb56-450e472f817a
    
    * test without leaks
    
    * add namespace for test
    
    * rename test
    
    * fix test compilation
    
    * using namespace test_const_only_smart_ptr;
    
    * fix smartptr in test
    
    * smaller test body
    
    * move test
    
    * style: pre-commit fixes
    
    ---------
    
    Co-authored-by: Ralf W. Grosse-Kunstleve <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    3 people authored Jun 11, 2025
    Configuration menu
    Copy the full SHA
    7ed76e2 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2025

  1. chore(deps): bump pypa/cibuildwheel from 3.0.0rc2 to 3.0 in the actio…

    …ns group (#5721)
    
    * chore(deps): bump pypa/cibuildwheel in the actions group
    
    Bumps the actions group with 1 update: [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel).
    
    
    Updates `pypa/cibuildwheel` from 3.0.0rc2 to 3.0.0
    - [Release notes](https://github.com/pypa/cibuildwheel/releases)
    - [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
    - [Commits](pypa/cibuildwheel@v3.0.0rc2...v3.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: pypa/cibuildwheel
      dependency-version: 3.0.0
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: actions
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    * Update tests-cibw.yml
    
    ---------
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Henry Schreiner <[email protected]>
    dependabot[bot] and henryiii authored Jun 12, 2025
    Configuration menu
    Copy the full SHA
    f8640da View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2025

  1. Configuration menu
    Copy the full SHA
    d218b16 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2025

  1. Configuration menu
    Copy the full SHA
    f3bb007 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2025

  1. docs: add documentation entry for warnings (#5356)

    * [docs] Add entry for warnings
    
    * Fix code formatting
    
    * Update docs
    
    * Fix issue with docs
    
    * [skip ci] Minor edits.
    
    ---------
    
    Co-authored-by: Ralf W. Grosse-Kunstleve <[email protected]>
    jiwaszki and rwgk authored Jun 17, 2025
    Configuration menu
    Copy the full SHA
    e2f86af View commit details
    Browse the repository at this point in the history
  2. Eliminate cross-DSO RTTI reliance in smart_holder functionality (fo…

    …r platforms like macOS). (#5728)
    
    * Revert PR #5700 production code change (pybind11/detail/struct_smart_holder.h).
    
    ```
    git checkout b194891~1 include/pybind11/detail/struct_smart_holder.h
    ```
    
    * Introduce `get_internals().get_memory_guarded_delete()`
    
    * [skip ci] Only pass around `memory::get_guarded_delete` function pointer.
    
    * [skip ci] Change a variable name for internal consistency. Add 3 x NOTE: PYBIND11_INTERNALS_VERSION needs to be bumped if changes are made to this struct.
    
    * Add comment: get_internals().get_memory_guarded_delete does not need with_internals()
    
    * Traverse all DSOs to find memory::guarded_delete with matching RTTI.
    
    * Add nullptr check to dynamic_cast overload.
    
    Suggested by ChatGPT for these reasons:
    
    * Prevents runtime RTTI lookups on nullptr.
    
    * Helps avoid undefined behavior if users pass in nulls from failed casts or optional paths.
    
    * Ensures consistent return value semantics and no accidental access to vtable.
    
    * Improve smart_holder unique_ptr deleter compatibility checks across DSOs:
    
    * Replace RTTI-based detection of std::default_delete<T> with a constexpr check to avoid RTTI reliance
    
    * Add type_info_equal_across_dso_boundaries() fallback using type_info::name() for RTTI equality across macOS DSOs
    
    * Rename related flags and functions for clarity (e.g., builtin → std_default)
    
    * Improves ABI robustness and clarity of ownership checks in smart_holder
    
    * Trivial renaming for internal consistency: builtin_delete → std_default_delete
    
    * Add get_trampoline_self_life_support to detail::type_info (passes local testing).
    
    * Polish previous commit slightly.
    
    * [skip ci] Store memory::get_guarded_delete in `detail::type_info` instead of `detail::internals` (no searching across DSOs required).
    
    * Revert change suggested by ChatGPT. After double-checking, ChatGPT agrees this isn't needed.
    
    * Minor polishing.
    rwgk authored Jun 17, 2025
    Configuration menu
    Copy the full SHA
    365d41a View commit details
    Browse the repository at this point in the history
  3. Add support for shared_ptr<const T> in py::init() with `smart_hol…

    …der` (#5731)
    
    * Add overload to enable `.def(py::init(&rtrn_shcp))`. Also uncomment `.def(py::init(&rtrn_uqcp))` and `.def(py::init(&rtrn_udcp))`, which happen to work already (not sure what change in the past made those work).
    
    * Introduce `construct_from_shared_ptr()` helper for DRY-ness.
    rwgk authored Jun 17, 2025
    Configuration menu
    Copy the full SHA
    86e82dd View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2025

  1. Configuration menu
    Copy the full SHA
    ad9180c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f2c0ab8 View commit details
    Browse the repository at this point in the history
  3. ci: check latest on 3.13 (#5734)

    Signed-off-by: Henry Schreiner <[email protected]>
    henryiii authored Jun 18, 2025
    Configuration menu
    Copy the full SHA
    be507b7 View commit details
    Browse the repository at this point in the history
  4. tests: handle 3.12 and 3.13 implementations and 3.14.0b3+ (#5732)

    * Use pytest.importorskip to get _xxsubinterpreters
    
    * tests: use modern interpreter API
    
    Signed-off-by: Henry Schreiner <[email protected]>
    
    * tests: try to fix beta2
    
    Signed-off-by: Henry Schreiner <[email protected]>
    
    * fix: remove debug printout
    
    Signed-off-by: Henry Schreiner <[email protected]>
    
    * tests: drop useless checks
    
    Signed-off-by: Henry Schreiner <[email protected]>
    
    * tests: improve check for 3.14.0b3 and b4+
    
    Signed-off-by: Henry Schreiner <[email protected]>
    
    * style: pre-commit fixes
    
    ---------
    
    Signed-off-by: Henry Schreiner <[email protected]>
    Co-authored-by: Henry Schreiner <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    3 people authored Jun 18, 2025
    Configuration menu
    Copy the full SHA
    c60c149 View commit details
    Browse the repository at this point in the history
  5. feat: numpy scalars (#5726)

    henryiii authored Jun 18, 2025
    Configuration menu
    Copy the full SHA
    cf3d1a7 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2025

  1. chore(deps): bump urllib3 from 2.2.2 to 2.5.0 in /docs (#5735)

    Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.2 to 2.5.0.
    - [Release notes](https://github.com/urllib3/urllib3/releases)
    - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
    - [Commits](urllib3/urllib3@2.2.2...2.5.0)
    
    ---
    updated-dependencies:
    - dependency-name: urllib3
      dependency-version: 2.5.0
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 19, 2025
    Configuration menu
    Copy the full SHA
    bdc56d9 View commit details
    Browse the repository at this point in the history
  2. chore: prepare for 3.0.0rc4 (#5736)

    Signed-off-by: Henry Schreiner <[email protected]>
    henryiii authored Jun 19, 2025
    Configuration menu
    Copy the full SHA
    ea3e33e View commit details
    Browse the repository at this point in the history
Loading