Skip to content

Commit e7cb37d

Browse files
authored
document SandboxedNativeEnvironment pattern (#2063)
2 parents 028f61d + ae68c96 commit e7cb37d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/nativetypes.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ Foo
5555
>>> print(result.value)
5656
15
5757

58+
Sandboxed Native Environment
59+
----------------------------
60+
61+
You can combine :class:`.SandboxedEnvironment` and :class:`NativeEnvironment` to
62+
get both behaviors.
63+
64+
.. code-block:: python
65+
66+
class SandboxedNativeEnvironment(SandboxedEnvironment, NativeEnvironment):
67+
pass
68+
5869
API
5970
---
6071

0 commit comments

Comments
 (0)