pybind11/docs
jesse-sony d65edfb024
Feature/local exception translator (#2650)
* 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
2021-07-21 05:22:18 -07:00
..
_static documentation improvements 2016-04-26 23:48:55 +02:00
advanced Feature/local exception translator (#2650) 2021-07-21 05:22:18 -07:00
cmake fix: find_import didn't work properly for classic tools (#2550) 2020-10-05 15:31:00 -04:00
Doxyfile feat: deprecate public constructors of module_ class (#2552) 2020-10-09 10:46:11 -04:00
Makefile took a stab at some documentation 2015-10-13 03:16:44 +02:00
basics.rst docs: add a note about compiling the example (#2737) 2020-12-24 09:51:36 -05:00
benchmark.py style: use Black everywhere (#2594) 2020-10-16 16:38:13 -04:00
benchmark.rst ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
changelog.rst chore: post-release (#3128) 2021-07-17 11:50:42 -04:00
classes.rst Avoid C-style casts for pointers in docs (#2487) 2020-09-14 20:07:29 +02:00
compiling.rst Add helper to build in-tree extensions. (#2831) 2021-07-13 17:21:55 -04:00
conf.py docs: fix pdf build, simpler start page (#2736) 2020-12-22 08:50:45 -05:00
faq.rst Fix typos and docs style (#3088) 2021-07-10 11:16:07 -07:00
index.rst fix: chapters in PDF again (#2606) 2020-10-18 14:31:28 -04:00
installing.rst docs: add a note about compiling the example (#2737) 2020-12-24 09:51:36 -05:00
limitations.rst docs: reduce visibility of 3.9.0 warning (#3105) 2021-07-15 15:01:13 -04:00
pybind11-logo.png Very minor documentation fixes, updated logo 2016-01-17 22:31:15 +01:00
pybind11_vs_boost_python1.png documentation improvements 2016-04-28 15:32:07 +02:00
pybind11_vs_boost_python1.svg Much more efficient generation of function signatures, updated docs 2016-01-17 22:31:15 +01:00
pybind11_vs_boost_python2.png documentation improvements 2016-04-28 15:32:07 +02:00
pybind11_vs_boost_python2.svg Much more efficient generation of function signatures, updated docs 2016-01-17 22:31:15 +01:00
reference.rst Update breathe to 4.26.1, add make_tuple, make_iterator, and make_key_iterator (#2828) 2021-01-28 12:28:16 +01:00
release.rst chore: post-release (#3128) 2021-07-17 11:50:42 -04:00
requirements.txt Fix: RTD Docutils Build (#3119) 2021-07-15 15:41:36 -04:00
upgrade.rst docs: fix various typos (#3075) 2021-07-04 19:58:35 -04:00