mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
Update pybind11.md
This commit is contained in:
parent
2d6def4bbd
commit
4ba0b7d2e2
@ -1,8 +1,15 @@
|
|||||||
# pybind11 user guide
|
---
|
||||||
|
icon: log
|
||||||
|
title: 'pybind11 User Guide'
|
||||||
|
order: 21
|
||||||
|
---
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
remember to use `py::scoped_interpreter guard{}` to start the interpreter before using any Python objects. Or explicitly call `py::interpreter::initialize()` and `py::interpreter::finalize()`.
|
pkpy provides a [pybind11](https://pybind11.readthedocs.io/en/stable/) compatible layer which allows users to do convenient bindings.
|
||||||
|
|
||||||
|
To begin with, use `py::scoped_interpreter guard{}` to start the interpreter before using any Python objects.
|
||||||
|
Or explicitly call `py::interpreter::initialize()` and `py::interpreter::finalize()`.
|
||||||
|
|
||||||
### module
|
### module
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user