You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An example or documentation on how to write a decorator in pyo3 would be great.
It also would be a good example teaching how to wrap a dynamically generated closure into pyfunction.
The text was updated successfully, but these errors were encountered:
It also would be a good example teaching how to wrap a dynamically generated closure into pyfunction.
You can't really do that at the moment, but you can create a pyclass with a __call__ method, much like how you can (in Python) implement decorators as classes rather than functions.
An example or documentation on how to write a decorator in pyo3 would be great.
It also would be a good example teaching how to wrap a dynamically generated closure into pyfunction.
The text was updated successfully, but these errors were encountered: