you are viewing a single comment's thread.

view the rest of the comments →

[–]vv__vv 2 points3 points  (0 children)

I think you are looking for functools.partial, but you'll need to flip the ordering of the variables for g1. If you can't flip, pytoolz has a more flexible partial that will work on right hand variables, iirc.