1. 28 May, 2022 1 commit
  2. 27 May, 2022 1 commit
  3. 26 May, 2022 2 commits
  4. 25 May, 2022 1 commit
  5. 24 May, 2022 1 commit
  6. 23 May, 2022 1 commit
  7. 20 May, 2022 1 commit
  8. 19 May, 2022 1 commit
  9. 17 May, 2022 2 commits
  10. 16 May, 2022 4 commits
  11. 09 May, 2022 1 commit
  12. 06 May, 2022 1 commit
  13. 05 May, 2022 2 commits
  14. 04 May, 2022 2 commits
  15. 02 May, 2022 2 commits
  16. 26 Apr, 2022 1 commit
  17. 24 Apr, 2022 8 commits
  18. 18 Apr, 2022 3 commits
  19. 15 Apr, 2022 1 commit
  20. 14 Apr, 2022 4 commits
    • chore: simplify numpy dtype ctor (#3869) · 3829b762
      * Simplify numpy dtype ctor
      
      * Simplify c_str ctor
      
      * Remove compat macro for str in numpy
      Aaron Gokaslan committed
    • Added deleted copy constructor for error_scope to comply with rule of 3. (#3870) · 45164c1f
      * Added deleted copy constructor for error_scope to comply with rule of 3.
      Oleksandr Pavlyk committed
    • Expand dtype accessors (#3868) · ba7a0fac
      * Added constructor based on typenum, based on PyArray_DescrFromType
      
      Added accessors for typenum, alignment, byteorder and flags fields of
      PyArray_Descr struct.
      
      * Added tests for new py::dtype constructor, and for accessors
      
      * [pre-commit.ci] auto fixes from pre-commit.com hooks
      
      for more information, see https://pre-commit.ci
      
      * Fixed the comment for alignment method
      
      * Update include/pybind11/numpy.h
      
      Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
      
      * [pre-commit.ci] auto fixes from pre-commit.com hooks
      
      for more information, see https://pre-commit.ci
      
      Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
      Oleksandr Pavlyk committed
    • Adds set_name method of pybind11::capsule class (#3866) · fa98804a
      * Adds set_name method of pybind11::capsule class
      
      This calls PyCapsule_SetName on the underlying capsule object.
      
      modified destructors to query capsules's Name
      
      [pre-commit.ci] auto fixes from pre-commit.com hooks
      
      for more information, see https://pre-commit.ci
      
      Handle possible exception thrown by PyCapsule_GetName
      
      Also removed accidentally reintroduced use of `const char *&`.
      
      [pre-commit.ci] auto fixes from pre-commit.com hooks
      
      for more information, see https://pre-commit.ci
      
      Fixed function name
      
      * Introduced private static function to reuse get_name_or_throw
      
      * added tests for capsule renaming
      
      * [pre-commit.ci] auto fixes from pre-commit.com hooks
      
      for more information, see https://pre-commit.ci
      
      * handle python error in flight
      
      * [pre-commit.ci] auto fixes from pre-commit.com hooks
      
      for more information, see https://pre-commit.ci
      
      * Initialized PyObject * variables to nullptr
      
      * use write-unraisable if PyCapsule_GetName raises
      
      * [pre-commit.ci] auto fixes from pre-commit.com hooks
      
      for more information, see https://pre-commit.ci
      
      * get_name_or_throw->get_name_no_throw
      
      If PyCapsule_GetName raises an error we should write as unraisable
      to consume it and notify user, and then restore the error in flight if any.
      This way this method called from destructor would not modify interpreter
      error state.
      
      * used error_scope struct
      
      * Renamed get_name_no_throw->get_name_in_error_scope
      
      Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      Oleksandr Pavlyk committed