Closed cslovell closed 4 years ago
Currently there are post_parse functions--very cool: post_parse=[multiply_by_two]
post_parse=[multiply_by_two]
Can we pass arguments to them? For instance, post_parse=[multiply_by_x(2)]?
post_parse=[multiply_by_x(2)]
If this is supported it would be great to see an example.
Hi, you can use functools.partial for it. E.g. partial(multiple_by_x, 2)
functools.partial
partial(multiple_by_x, 2)
Please re-open if it didn't help
Currently there are post_parse functions--very cool:
post_parse=[multiply_by_two]
Can we pass arguments to them? For instance,
post_parse=[multiply_by_x(2)]
?If this is supported it would be great to see an example.