- 23 Oct, 2021 1 commit
-
-
Aaron Gokaslan authored
* Add C++ bindings to throw AttributeError * Fix formatting bug
-
- 19 Oct, 2021 1 commit
-
-
Henry Schreiner authored
* fix: deprecate make_simple_namespace, fix Python 3.11 * docs: update links
-
- 08 Oct, 2021 1 commit
-
-
Aaron Gokaslan authored
* Add additional pygrep pre-commit hooks * Remove useless noqas with hook * Fix all single rst backticks * Simplify mypy pre-commit hook with upstream fixes * Add back missing comment * Add one last pygrep hook
-
- 24 Sep, 2021 1 commit
-
-
Jeremy Maitin-Shepard authored
* Fix `pybind11::object::operator=` to be safe if `*this` is accessible from Python * Add `custom_type_setup` attribute This allows for custom modifications to the PyHeapTypeObject prior to calling `PyType_Ready`. This may be used, for example, to define `tp_traverse` and `tp_clear` functions.
-
- 22 Sep, 2021 1 commit
-
-
Aaron Gokaslan authored
* Apply blacken-docs and fix language-hints * Add blacken-docs pre-commit hook * Add pycln pre-commit hook * Enable a few builtin hooks * Black no longer ignores pyi files
-
- 17 Sep, 2021 1 commit
-
-
Henry Schreiner authored
-
- 26 Aug, 2021 1 commit
-
-
Jouke Witteveen authored
Co-authored-by:Jouke Witteveen <j.witteveen@cosine.nl>
-
- 24 Aug, 2021 1 commit
-
-
Ralf W. Grosse-Kunstleve authored
* Add py::raise_from to enable chaining exceptions on Python 3.3+ * Use 'raise from' in initialization * Documenting the exact base version of _PyErr_FormatVFromCause, adding back `assert`s. Co-authored-by:Dustin Spicuzza <dustin@virtualroadside.com>
-
- 21 Jul, 2021 1 commit
-
-
jesse-sony authored
* Create a module_internals struct Since we now have two things that are going to be module local, it felt correct to add a struct to manage them. * Add local exception translators These are added via the register_local_exception_translator function and are then applied before the global translators * Add unit tests to show the local exception translator works * Fix a bug in the unit test with the string value of KeyError * Fix a formatting issue * Rename registered_local_types_cpp() Rename it to get_registered_local_types_cpp() to disambiguate from the new member of module_internals * Add additional comments to new local exception code path * Add a register_local_exception function * Add additional unit tests for register_local_exception * Use get_local_internals like get_internals * Update documentation for new local exception feature * Add back a missing space * Clean-up some issues in the docs * Remove the code duplication when translating exceptions Separated out the exception processing into a standalone function in the details namespace. Clean-up some comments as per PR notes as well * Remove the code duplication in register_exception * Cleanup some formatting things caught by clang-format * Remove the templates from exception translators But I added a using declaration to alias the type. * Remove the extra local from local_internals variable names * Add an extra explanatory comment to local_internals * Fix a typo in the code
-
- 12 Jul, 2021 3 commits
-
-
Ralf W. Grosse-Kunstleve authored
* Adding test_return_vector_bool_raw_ptr to test_stl.py. * First attempt to make the documentation more accurate, but not trying to be comprehensive, to not bloat the reference table with too many details. * Fixing minor oversights. * Applying reviewer suggestion.
-
Henry Schreiner authored
-
Ralf W. Grosse-Kunstleve authored
* Adding iostream.h thread-safety documentation. * Restoring `TestThread` code with added `std::lock_guard<std::mutex>`. * Updating new comments to reflect new information. * Fixing up `git rebase -X theirs` accidents.
-
- 10 Jul, 2021 1 commit
-
-
Jan Iwaszkiewicz authored
* py::pickle typo * correct dots and parentheses
-
- 02 Jul, 2021 1 commit
-
-
Antony Lee authored
-
- 17 Jun, 2021 2 commits
-
-
Aaron Gokaslan authored
-
Aaron Gokaslan authored
-
- 27 May, 2021 1 commit
-
-
Yichen authored
* Set visibility of exceptions to default. Co-authored-by:XZiar <czktc2007@gmail.com> * add test * update docs * Skip failed test.
-
- 06 May, 2021 1 commit
-
-
Eric Cousineau authored
test_call_policies: Explicitly check free-functions and static methods
-
- 02 Apr, 2021 1 commit
-
-
JYX authored
-
- 25 Feb, 2021 1 commit
-
-
Tom de Geus authored
-
- 14 Jan, 2021 2 commits
-
-
Yannick Jadoul authored
docs: the order of alternatives for variant types matters, and follows the same rules as overload resolution (#2784)
-
Andy Maloney authored
-
- 08 Dec, 2020 1 commit
-
-
Antony Lee authored
This is nice enough to be mentioned explicitly in the docs.
-
- 19 Nov, 2020 1 commit
-
-
Jean-Baptiste Lespiau authored
* List all the pyind11 exceptions. For curious readers, see `translate_exception` and `PYBIND11_RUNTIME_EXCEPTION.
-
- 15 Oct, 2020 1 commit
-
-
Henry Schreiner authored
-
- 06 Oct, 2020 1 commit
-
-
Henry Schreiner authored
* feat: add a priority overload with py::prepend * doc: fix wording as suggested by rwgk * feat: add get_pointer * refactor: is_prepended -> prepend (internal) * docs: suggestion from @wjakob * tests: add test covering get_pointer/set_pointer
-
- 05 Oct, 2020 1 commit
-
-
Yannick Jadoul authored
* Remove code inside 'PYPY_VERSION_NUM < 0x06000000' preprocessor if branch * fix: more cleanup * Remove more references to PyPy 5.7 and 5.9 in the docs * Update comment on PyUnicode_UTF* in PyPy Co-authored-by:Henry Schreiner <henryschreineriii@gmail.com>
-
- 04 Oct, 2020 1 commit
-
-
Yannick Jadoul authored
-
- 03 Oct, 2020 1 commit
-
-
Henry Schreiner authored
* WIP: module -> module_ without typedef * refactor: allow py::module to work again
-
- 15 Sep, 2020 3 commits
-
-
Henry Schreiner authored
* fix: use OVERRIDE instead of OVERLOAD * docs: more accurate statement
-
Yannick Jadoul authored
Change base parameter type in register_exception and exception constructor from PyObject* to handle (#2467) * Change base parameter type in register_exception and excepion constructor from PyObject* to handle * Fix compilation error passing `handle` to `PyObject*`
-
Yannick Jadoul authored
Resolve empty statement warning when using PYBIND11_OVERLOAD_PURE_NAME and PYBIND11_OVERLOAD_PURE (#2325) * Wrap PYBIND11_OVERLOAD_NAME and PYBIND11_OVERLOAD_PURE_NAME in do { ... } while (false), and resolve trailing semicolon * Deprecate PYBIND11_OVERLOAD_* and get_overload in favor of PYBIND11_OVERRIDE_* and get_override * Correct erroneous usage of 'overload' instead of 'override' in the implementation and internals * Fix tests to use non-deprecated PYBIND11_OVERRIDE_* macros * Update docs to use override instead of overload where appropriate, and add warning about deprecated aliases * Add semicolons to deprecated PYBIND11_OVERLOAD macros to match original behavior * Remove deprecation of PYBIND11_OVERLOAD_* macros and get_overload * Add note to changelog and upgrade guide
-
- 14 Sep, 2020 2 commits
-
-
Henry Schreiner authored
* feat: type<T>() * refactor: using py::type as class * refactor: py::object as base * wip: tigher api * refactor: fix conversion and limit API further * docs: some added notes from @EricCousineau-TRI * refactor: use py::type::of
-
Boris Staletic authored
Why only for pointers? Because C casts are hard to grep for.
-
- 09 Sep, 2020 1 commit
-
-
Holger Kohr authored
* Add py::object casting example to embedding docs * Move implicit cast example to object.rst * Move to bottom and improve implicit casting text * Fix xref * Improve wording as per @bstaletic's suggestion
-
- 08 Sep, 2020 1 commit
-
-
Henry Schreiner authored
* ci: only annotate linux for now * style: block some common mistakes
-
- 06 Sep, 2020 1 commit
-
-
michalsustr authored
* Add note about specifying custom base. * Update exception docs based on PR feedback. * Fix trailing whitespace. Co-authored-by:Michal Sustr <michal.sustr@aic.fel.cvut.cz>
-
- 05 Sep, 2020 1 commit
-
-
Henry Schreiner authored
* feat: py::pos_only * fix: review points from @YannickJadoul * fix: review points from @bstaletic * refactor: kwonly -> kw_only
-
- 04 Sep, 2020 1 commit
-
-
Eric Cousineau authored
-
- 01 Sep, 2020 1 commit
-
-
Sergei Izmailov authored
* doc: avoid C++ types in docstrings * A bit of rewording * Another bit of rewording * Third rewording
-