35 Commits (undefined-macos)

Author SHA1 Message Date
Henry Schreiner 438034c5b8
chore: move to Ruff and add rules (#4483) 2 years ago
Dustin Spicuzza 8dcced29ae
Always display python type information in cast errors (#4463) 2 years ago
Ralf W. Grosse-Kunstleve 296615ad34
Add macos_brew_install_llvm to ci.yml (#4326) 3 years ago
Ralf W. Grosse-Kunstleve 3a2c96bd6f
fix: unicode surrogate character in Python exception message. (#4297) 3 years ago
pre-commit-ci[bot] ba5ccd845a
[pre-commit.ci] pre-commit autoupdate (#4104) 3 years ago
Ralf W. Grosse-Kunstleve cb35a3c143
For PyPy only, re-enable old behavior (runs the risk of masking bugs) (#4079) 3 years ago
Sergei Lebedev a05bc3d235
error_already_set::what() is now constructed lazily (#1895) 3 years ago
Ralf W. Grosse-Kunstleve b24c5ed204
Replace "Unknown internal error occurred" with a more helpful message. (#3982) 3 years ago
Ralf W. Grosse-Kunstleve de4ba92c9f
Add `error_scope` to `detail::get_internals()` (#3981) 3 years ago
Ralf W. Grosse-Kunstleve 2c549eb7aa
Move `PyErr_NormalizeException()` up a few lines (#3971) 3 years ago
Henry Schreiner 522c59ceb2
chore: drop Python 3.5 (#3719) 3 years ago
Ralf W. Grosse-Kunstleve 6493f496e3
Python 2 removal part 1: tests (C++ code is intentionally ~untouched) (#3688) 3 years ago
Aaron Gokaslan d2ec836712
Add support for nested C++11 exceptions (#3608) 4 years ago
Henry Schreiner 72282f75a1
ci: support development releases of Python (#3419) 4 years ago
Ralf W. Grosse-Kunstleve c8ce4b8df8
Clone of @virtuald's PR #2112 with minor enhancements. (#3215) 4 years ago
Aaron Gokaslan 9df2f1ff13
maint(precommit): Apply isort (#3195) 4 years ago
jesse-sony d65edfb024
Feature/local exception translator (#2650) 4 years ago
Yichen 3ac690b88b
Explicitly export exception types. (#2999) 4 years ago
Yannick Jadoul 830f8eda87
tests: update pytest 6.2.1 and fix test_python_alreadyset_in_destructor (#2741) 5 years ago
Henry Schreiner c50f90eca6
style: use Black everywhere (#2594) 5 years ago
Henry Schreiner cf0a64596e
fix: throwing repr caused a segfault (#2389) 5 years ago
James R. Barlow 3618bea2aa Add and document py::error_already_set::discard_as_unraisable() 5 years ago
Henry Schreiner d8c7ee00a6
ci: GHA basic format & pre-commit (#2309) 5 years ago
Francesco Biscani deb3cb238a Add exception translation for std::overflow_error. (#1977) 6 years ago
Yannick Jadoul 97784dad3e [BUGFIX] Fixing pybind11::error_already_set.matches to also work with exception subclasses (#1715) 6 years ago
Jason Rhinelander d598172993 Fix builtin exception handlers to work across modules 8 years ago
Jason Rhinelander 1682b67326 Simplify error_already_set 8 years ago
Jason Rhinelander abcf43d59c Convert test_exceptions to new testing style 8 years ago
Dean Moldovan 83e328f58c Split test_python_types.cpp into builtin_casters, stl and pytypes 8 years ago
Roman Miroshnychenko 83a8a977a7 Add a method to check Python exception types (#772) 8 years ago
Dean Moldovan bad1740213 Add checks to maintain a consistent Python code style and prevent bugs (#515) 9 years ago
Jason Rhinelander b3794f1087 Added py::register_exception for simple case (#296) 9 years ago
Dean Moldovan 135ba8deaf Make error_already_set fetch and hold the Python error 9 years ago
Ivan Smirnov 67b54894b2 Set error if it's not set in error_already_set() 9 years ago
Dean Moldovan a0c1ccf0a9 Port tests to pytest 9 years ago