youknowone / ring

Python cache interface with clean API and built-in memcache & redis + asyncio support.
http://ring-cache.readthedocs.io/en/latest/
Other
480 stars 37 forks source link

Better support for variable number of arguments #156

Closed ssnl closed 4 years ago

ssnl commented 4 years ago

Currently,

In [74]: import ring
    ...:
    ...: @ring.lru()
    ...: def a(*args, **kwargs):
    ...:     print(args, kwargs)
    ...:

In [75]:

In [75]: a(3)
() {'args': (3,), 'kwargs': {}}'

In [76]: ring.__version__
Out[76]: '0.7.3'

Instead, it should print

(3,) {}
youknowone commented 4 years ago

Oh, this is weird. Thanks for the report