pyo3/examples/rustapi_module/src
Sebastian Pütz 5bbca1a052 Set the module of #[pyfunction]s.
Previously neither the module nor the name of the module of
pyfunctions were registered. This commit passes the module and
its name when creating a new pyfunction.

PyModule::add_function and PyModule::add_module have been added and are
set to replace `add_wrapped` in a future release. `add_wrapped` is kept
for compatibility reasons during the transition.

Depending on whether a `PyModule` or `Python` is the argument for the
Python function-wrapper, the module will be registered with the function.
2020-09-03 14:49:28 +02:00
..
buf_and_str.rs
datetime.rs Set the module of #[pyfunction]s. 2020-09-03 14:49:28 +02:00
dict_iter.rs Rename exceptions to PyException etc; reintroduce deprecated ones 2020-07-18 06:02:57 +01:00
lib.rs Add ability to return from __next__ / __anext__ 2020-06-23 15:26:28 +01:00
objstore.rs
othermod.rs Set the module of #[pyfunction]s. 2020-09-03 14:49:28 +02:00
pyclass_iter.rs Add ability to return from __next__ / __anext__ 2020-06-23 15:26:28 +01:00
subclassing.rs Use subclass correctly in tp_new 2020-06-22 01:38:13 +09:00