Skip to content
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

feat: make stl.h list|set|map_caster more user friendly. #4686

Merged
merged 55 commits into from
Aug 13, 2024

Commits on May 30, 2023

  1. Add test_pass_std_vector_int(), test_pass_std_set_int() in test_stl

    Ralf W. Grosse-Kunstleve committed May 30, 2023
    Configuration menu
    Copy the full SHA
    d2a36d9 View commit details
    Browse the repository at this point in the history
  2. Change list_caster to also accept generator objects (`PyGen_Check(s…

    …rc.ptr()`).
    
    Note for completeness: This is a more conservative change than google/pybind11clif#30042
    Ralf W. Grosse-Kunstleve committed May 30, 2023
    Configuration menu
    Copy the full SHA
    7d30378 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

  1. Drop in (currently unpublished) PyCLIF code, use in list_caster, ad…

    …just tests.
    Ralf W. Grosse-Kunstleve committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    039d1b7 View commit details
    Browse the repository at this point in the history
  2. Use PyObjectTypeIsConvertibleToStdSet() in set_caster, adjust tests.

    Ralf W. Grosse-Kunstleve committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    bdba857 View commit details
    Browse the repository at this point in the history
  3. Use PyObjectTypeIsConvertibleToStdMap() in map_caster, add tests.

    Ralf W. Grosse-Kunstleve committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    ec50ca0 View commit details
    Browse the repository at this point in the history
  4. Simplify list_caster load() implementation, push str/bytes check …

    …into `PyObjectTypeIsConvertibleToStdVector()`.
    Ralf W. Grosse-Kunstleve committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    eeb59af View commit details
    Browse the repository at this point in the history
  5. clang-tidy cleanup with a few extra (... != 0) to be more consistent.

    Ralf W. Grosse-Kunstleve committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    3631886 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. Also use PyObjectTypeIsConvertibleToStdVector() in array_caster.

    Ralf W. Grosse-Kunstleve committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    b4f767b View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    42e22d7 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

  1. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    9647a92 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    1ed90cf View commit details
    Browse the repository at this point in the history
  2. Update comment pointing to clif/python/runtime.cc (code is unchanged).

    Ralf W. Grosse-Kunstleve committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    3cc034b View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    18c4153 View commit details
    Browse the repository at this point in the history
  4. Comprehensive test coverage, enhanced set_caster load implementation.

    Ralf W. Grosse-Kunstleve committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    e7330f2 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2023

  1. Resolve clang-tidy eror.

    Ralf W. Grosse-Kunstleve committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    da29bf5 View commit details
    Browse the repository at this point in the history
  2. Add a long C++ comment explaining what led to the `PyObjectTypeIsConv…

    …ertibleTo*()` implementations.
    Ralf W. Grosse-Kunstleve committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    1fa338e View commit details
    Browse the repository at this point in the history
  3. Minor function name change in test.

    Ralf W. Grosse-Kunstleve committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    6b5c780 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    9150a88 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

  1. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    62fda81 View commit details
    Browse the repository at this point in the history
  2. strcmp -> std::strcmp (thanks @Skylion007 for catching this)

    Ralf W. Grosse-Kunstleve committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    4b25f74 View commit details
    Browse the repository at this point in the history
  3. Add PyCallable_Check(items) in PyObjectTypeIsConvertibleToStdMap()

    Ralf W. Grosse-Kunstleve committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    3cfc95b View commit details
    Browse the repository at this point in the history
  4. Resolve clang-tidy error

    Ralf W. Grosse-Kunstleve committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    59509f2 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    903faac View commit details
    Browse the repository at this point in the history
  6. Use PyMapping_Items() instead of src.attr("items")(), to be inter…

    …nally consistent with `PyMapping_Check()`
    Ralf W. Grosse-Kunstleve committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    4ab40d7 View commit details
    Browse the repository at this point in the history
  7. Update link to PyCLIF sources.

    Ralf W. Grosse-Kunstleve committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    5f7c9d4 View commit details
    Browse the repository at this point in the history
  8. Fix typo (thanks @wangxf123456 for catching this)

    Ralf W. Grosse-Kunstleve committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    ccfeb02 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2023

  1. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Jul 23, 2023
    Configuration menu
    Copy the full SHA
    6c1ec6a View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    cc4d69c View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Add test_pass_std_vector_int(), test_pass_std_set_int() in test_stl

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    dacb827 View commit details
    Browse the repository at this point in the history
  2. Change list_caster to also accept generator objects (`PyGen_Check(s…

    …rc.ptr()`).
    
    Note for completeness: This is a more conservative change than google/pybind11clif#30042
    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    3fc2d2a View commit details
    Browse the repository at this point in the history
  3. Drop in (currently unpublished) PyCLIF code, use in list_caster, ad…

    …just tests.
    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    ff0724f View commit details
    Browse the repository at this point in the history
  4. Use PyObjectTypeIsConvertibleToStdSet() in set_caster, adjust tests.

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    be02291 View commit details
    Browse the repository at this point in the history
  5. Use PyObjectTypeIsConvertibleToStdMap() in map_caster, add tests.

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    0a79f55 View commit details
    Browse the repository at this point in the history
  6. Simplify list_caster load() implementation, push str/bytes check …

    …into `PyObjectTypeIsConvertibleToStdVector()`.
    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    ae95424 View commit details
    Browse the repository at this point in the history
  7. clang-tidy cleanup with a few extra (... != 0) to be more consistent.

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    8aa81d7 View commit details
    Browse the repository at this point in the history
  8. Also use PyObjectTypeIsConvertibleToStdVector() in array_caster.

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    4435ed0 View commit details
    Browse the repository at this point in the history
  9. Update comment pointing to clif/python/runtime.cc (code is unchanged).

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    9aca5e8 View commit details
    Browse the repository at this point in the history
  10. Comprehensive test coverage, enhanced set_caster load implementation.

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    9dc7d7c View commit details
    Browse the repository at this point in the history
  11. Resolve clang-tidy eror.

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    d9eeea8 View commit details
    Browse the repository at this point in the history
  12. Add a long C++ comment explaining what led to the `PyObjectTypeIsConv…

    …ertibleTo*()` implementations.
    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    9ac319b View commit details
    Browse the repository at this point in the history
  13. Minor function name change in test.

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    b834767 View commit details
    Browse the repository at this point in the history
  14. strcmp -> std::strcmp (thanks @Skylion007 for catching this)

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    d19a0ff View commit details
    Browse the repository at this point in the history
  15. Add PyCallable_Check(items) in PyObjectTypeIsConvertibleToStdMap()

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    69a0da8 View commit details
    Browse the repository at this point in the history
  16. Resolve clang-tidy error

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    c86fa97 View commit details
    Browse the repository at this point in the history
  17. Use PyMapping_Items() instead of src.attr("items")(), to be inter…

    …nally consistent with `PyMapping_Check()`
    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    940e190 View commit details
    Browse the repository at this point in the history
  18. Update link to PyCLIF sources.

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    f7725e4 View commit details
    Browse the repository at this point in the history
  19. Fix typo (thanks @wangxf123456 for catching this)

    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    fa72918 View commit details
    Browse the repository at this point in the history
  20. Merge branch 'list_caster_pass_generator' of https://github.com/rwgk/…

    …pybind11 into list_caster_pass_generator
    Ralf W. Grosse-Kunstleve committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    a6b9a00 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    ac3ac4d View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    87ff92a View commit details
    Browse the repository at this point in the history
  2. Fix typo discovered by new version of codespell.

    Ralf W. Grosse-Kunstleve committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    3ae34f3 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    d1ffe4f View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2024

  1. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    2267e5c View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    a38d0bd View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into list_caster_pass_generator

    Ralf W. Grosse-Kunstleve committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    fbf41fd View commit details
    Browse the repository at this point in the history