funcy icon indicating copy to clipboard operation
funcy copied to clipboard

Add @unpack decorator

Open ADR-007 opened this issue 7 years ago • 1 comments

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 library, but it will be strange if I will install this module only for this.

ADR-007 avatar Feb 10 '18 21:02 ADR-007

See discussion in #62.

Suor avatar Feb 11 '18 07:02 Suor