pyo3/extensions
Daniel Grunwald a23b5b5910 Add parameter extraction support to py_fn! and py_method!.
These macros now support specifying an argument list:
`py_fn!(myfn(myarg: i32))`
will expect `myfn` to be a function with the signature:
`fn myfn<'p>(py: Python<'p>, myarg: i32) -> PyResult<'p, _>`

It can called from python as `myfn(1)`
or using keyword arguments: `myfn(myarg=1)`.

If no parameter list is specified (`py_fn!(myfn)`), the expected signature
now includes the keyword arguments:
`fn run<'p>(py: Python<'p>, args: &PyTuple<'p>, kwargs: Option<&PyDict<'p>>)`

Due to the additional `kwargs` argument, this is a [breaking-change].
2015-08-03 00:06:15 +02:00
..
.gitignore Add support for exposing rust functions to python 2015-04-18 20:17:25 +02:00
custom_type.rs Add parameter extraction support to py_fn! and py_method!. 2015-08-03 00:06:15 +02:00
hello.rs Add parameter extraction support to py_fn! and py_method!. 2015-08-03 00:06:15 +02:00
inheritance.rs Change py_func!(py, f) to py_fn(f). 2015-06-25 00:02:56 +02:00
Makefile Add py_method!() macro for creating method descriptors. 2015-06-25 23:58:57 +02:00