jackfirth / pyramda

Python package supporting heavy functional programming through currying. Translation of the Ramda library from javascript to python.
MIT License
127 stars 10 forks source link

DRY, use `inspect.signature` for `curry`? #10

Open peteut opened 8 years ago

peteut commented 8 years ago

Hi,

I did some experiments w/ inspect.signature and it works quite well. curry.py gets much simpler, but there is no checking for updated **kwargs in yet.

Cheers, Alain

jackfirth commented 8 years ago

Is it possible to use it in 2.6 and 2.7? I don't intend to drop support for those versions.

peteut commented 8 years ago

CI only checks from 2.7 upwards. I'll add checks for 2.7 in that case.

peteut commented 8 years ago

Added 2.6 tests, works w/ future.moves. funcsigs is a dependency in addition. Travis CI tests can be found here.