-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: add py::set_error()
, use in updated py::exception<>
documentation
#4772
Commits on Aug 2, 2023
-
Copy clang 17 compatibility fixes from PR pybind#4762 to a separate PR.
Ralf W. Grosse-Kunstleve committedAug 2, 2023 Configuration menu - View commit details
-
Copy full SHA for 5efd96e - Browse repository at this point
Copy the full SHA 5efd96eView commit details -
static py::exception<> -> static py::handle
Ralf W. Grosse-Kunstleve committedAug 2, 2023 Configuration menu - View commit details
-
Copy full SHA for 5a31824 - Browse repository at this point
Copy the full SHA 5a31824View commit details
Commits on Aug 3, 2023
-
Add
py::set_error()
but also try the suggestion of @malfet (pytorch…Ralf W. Grosse-Kunstleve committedAug 3, 2023 Configuration menu - View commit details
-
Copy full SHA for 9a4eba5 - Browse repository at this point
Copy the full SHA 9a4eba5View commit details
Commits on Aug 4, 2023
-
clang 17 compatibility fixes (pybind#4767)
* Copy clang 17 compatibility fixes from PR pybind#4762 to a separate PR. * Add gcc:13 C++20 * Add silkeh/clang:16-bullseye C++20
Ralf W. Grosse-Kunstleve committedAug 4, 2023 Configuration menu - View commit details
-
Copy full SHA for 8e5450a - Browse repository at this point
Copy the full SHA 8e5450aView commit details -
chore(deps): update pre-commit hooks (pybind#4770)
updates: - [github.com/psf/black: 23.3.0 → 23.7.0](psf/black@23.3.0...23.7.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.276 → v0.0.281](astral-sh/ruff-pre-commit@v0.0.276...v0.0.281) - [github.com/asottile/blacken-docs: 1.14.0 → 1.15.0](adamchainz/blacken-docs@1.14.0...1.15.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 1142d0f - Browse repository at this point
Copy the full SHA 1142d0fView commit details -
docs: Remove upper bound on pybind11 in example pyproject.toml for se…
…tuptools (pybind#4774) * docs: Remove upper bound on pybind11 in example pyproject.toml for setuptools * Update docs/compiling.rst --------- Co-authored-by: Henry Schreiner <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7a12354 - Browse repository at this point
Copy the full SHA 7a12354View commit details -
Provide better type hints for a variety of generic types (pybind#4259)
* Provide better type hints for a variety of generic types * Makes better documentation * tuple, dict, list, set, function * Move to py::typing * style: pre-commit fixes * Update copyright line with correct year and actual author. The author information was copy-pasted from the git log output. --------- 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>
Configuration menu - View commit details
-
Copy full SHA for e2746eb - Browse repository at this point
Copy the full SHA e2746ebView commit details -
Use
py::set_error()
everywhere possible (only one special case, in ……common.h). Overload `py::set_error(py::handle, py::handle)`. Change back to `static py::handle exc = ... .release();` Deprecate `py::exception<>::operator()`
Ralf W. Grosse-Kunstleve committedAug 4, 2023 Configuration menu - View commit details
-
Copy full SHA for daaabcc - Browse repository at this point
Copy the full SHA daaabccView commit details -
Merge branch 'master' into static_py_exception
Ralf W. Grosse-Kunstleve committedAug 4, 2023 Configuration menu - View commit details
-
Copy full SHA for 5f8e188 - Browse repository at this point
Copy the full SHA 5f8e188View commit details -
Add
PYBIND11_WARNING_DISABLE
for INTEL and MSVC (and sort alphabeti……cally).
Ralf W. Grosse-Kunstleve committedAug 4, 2023 Configuration menu - View commit details
-
Copy full SHA for 712842a - Browse repository at this point
Copy the full SHA 712842aView commit details -
PYBIND11_WARNING_DISABLE_INTEL(10441)
does not work.For ICC only, falling back to the recommended `py::set_error()` to keep the testing simple. It is troublesome to add `--diag-disable=10441` specifically for test_exceptions.cpp, even that is non-ideal because it covers the entire file, not just the one line we need it for, and the value of exercising the trivial deprecated `operator()` on this one extra platform is practically zero.
Ralf W. Grosse-Kunstleve committedAug 4, 2023 Configuration menu - View commit details
-
Copy full SHA for 5831733 - Browse repository at this point
Copy the full SHA 5831733View commit details -
Merge branch 'master' into static_py_exception
Ralf W. Grosse-Kunstleve committedAug 4, 2023 Configuration menu - View commit details
-
Copy full SHA for 7f777a4 - Browse repository at this point
Copy the full SHA 7f777a4View commit details -
Ralf W. Grosse-Kunstleve committed
Aug 4, 2023 Configuration menu - View commit details
-
Copy full SHA for 2ddf85b - Browse repository at this point
Copy the full SHA 2ddf85bView commit details -
NVHPC 23.5.0 generates deprecation warnings. They are currently not t…
…reated as errors, but falling back to using `py::set_error()` to not have to deal with that distraction.
Ralf W. Grosse-Kunstleve committedAug 4, 2023 Configuration menu - View commit details
-
Copy full SHA for 1d4973f - Browse repository at this point
Copy the full SHA 1d4973fView commit details