File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ avoids this issue involves weak reference with a cleanup callback:
223223
224224.. code-block :: cpp
225225
226- // Register a callback function that is invoked when the BaseClass object is colelcted
226+ // Register a callback function that is invoked when the BaseClass object is collected
227227 py::cpp_function cleanup_callback(
228228 [](py::handle weakref) {
229229 // perform cleanup here -- this function is called with the GIL held
@@ -237,9 +237,9 @@ avoids this issue involves weak reference with a cleanup callback:
237237
238238 .. note ::
239239
240- PyPy (at least version 5.9) does not garbage collect objects when the
241- interpreter exits. An alternative approach (which also works on CPython) is to use
242- the :py:mod: ` atexit ` module [ #f7 ]_, for example:
240+ PyPy does not garbage collect objects when the interpreter exits. An alternative
241+ approach (which also works on CPython) is to use the :py:mod: ` atexit ` module [ #f7 ]_,
242+ for example:
243243
244244 .. code-block :: cpp
245245
You can’t perform that action at this time.
0 commit comments