mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 00:22:00 +00:00
misc. typos
Found via `codespell`
This commit is contained in:
parent
507da4181d
commit
28cb6764fc
@ -138,5 +138,5 @@ section.
|
|||||||
error return without exception set``.
|
error return without exception set``.
|
||||||
|
|
||||||
Exceptions that you do not plan to handle should simply not be caught, or
|
Exceptions that you do not plan to handle should simply not be caught, or
|
||||||
may be explicity (re-)thrown to delegate it to the other,
|
may be explicitly (re-)thrown to delegate it to the other,
|
||||||
previously-declared existing exception translators.
|
previously-declared existing exception translators.
|
||||||
|
@ -126,7 +126,7 @@ targeted arguments can be passed through the :class:`cpp_function` constructor:
|
|||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
|
|
||||||
Code with invalid return value policies might access unitialized memory or
|
Code with invalid return value policies might access uninitialized memory or
|
||||||
free data structures multiple times, which can lead to hard-to-debug
|
free data structures multiple times, which can lead to hard-to-debug
|
||||||
non-determinism and segmentation faults, hence it is worth spending the
|
non-determinism and segmentation faults, hence it is worth spending the
|
||||||
time to understand all the different options in the table above.
|
time to understand all the different options in the table above.
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include "pybind11_tests.h"
|
#include "pybind11_tests.h"
|
||||||
|
|
||||||
// A type that should be raised as an exeption in Python
|
// A type that should be raised as an exception in Python
|
||||||
class MyException : public std::exception {
|
class MyException : public std::exception {
|
||||||
public:
|
public:
|
||||||
explicit MyException(const char * m) : message{m} {}
|
explicit MyException(const char * m) : message{m} {}
|
||||||
|
@ -98,7 +98,7 @@ def test_nested():
|
|||||||
|
|
||||||
del c
|
del c
|
||||||
pytest.gc_collect()
|
pytest.gc_collect()
|
||||||
del a # Should't delete while abase is still alive
|
del a # Shouldn't delete while abase is still alive
|
||||||
pytest.gc_collect()
|
pytest.gc_collect()
|
||||||
|
|
||||||
assert abase.value == 42
|
assert abase.value == 42
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# - Find python libraries
|
# - Find python libraries
|
||||||
# This module finds the libraries corresponding to the Python interpeter
|
# This module finds the libraries corresponding to the Python interpreter
|
||||||
# FindPythonInterp provides.
|
# FindPythonInterp provides.
|
||||||
# This code sets the following variables:
|
# This code sets the following variables:
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user