funcy icon indicating copy to clipboard operation
funcy copied to clipboard

A fancy and practical functional tools

Results 26 funcy issues
Sort by recently updated
recently updated
newest added

In this [https://funcy.readthedocs.io/en/stable/cheatsheet.html](cheatsheet area) The function nth has a signature with only one parameter: seq

[Stub files](https://mypy.readthedocs.io/en/stable/stubs.html#stub-files) can be added to the project to provide static type information that can be used by tools like [mypy](https://mypy.readthedocs.io/en/stable/). I believe that the simplest way to add this...

# Summary - Enable exponential backoff via keyword arguments. # Checklist - [x] Implement unit test cases. # Reason - Currently, the feature supports highly customized retry intervals via a...

Hi! I'm happy to use the library but looks like I found a bug: ``` >>>@funcy.autocurry ...def a(b, c): return b + c >>>a(c=1)(2) 3 >>>@funcy.autocurry ...def aa(b, *, c):...

``` >>> has_suffix = rcurry(str.endswith) Traceback (most recent call last): File "", line 1, in File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\funcy\funcs.py", line 57, in rcurry n = get_spec(func).max_n File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\funcy\_inspect.py", line 108, in get_spec...

looking for more interest

I propose to add a decorator which will unpack argument: ``` def process(foo, bar): ... map(unpack(process), product(['foo1', 'foo2'], ['bar1', 'bar2'])) ``` Is it a funcy way?

looking for more interest

```python from funcy import get_in get_in({}, "key") # example 1 get_in([], "key") # example 2 ``` In the code sample above, example 1 returns the default value because the path...

looking for more interest

I propose to add decorator which will unpack argument: ``` def process(foo, bar): ... map(unpack(process), product(['foo1', 'foo2'], ['bar1', 'bar2'])) ``` This decorator already is in [ddt](http://ddt.readthedocs.io/en/latest/example.html) library, but it will...

looking for more interest

Is there a way to deep merge a dict?

failing on master also use makefile command instead of replicating it