Message284972
I think this is a bug and it should be fixed in 3.6. Currenly lru_cache breaks PEP 468 (Preserving Keyword Argument Order).
>>> from functools import lru_cache
>>> @lru_cache()
... def f(**kwargs):
... return list(kwargs.items())
...
>>> f(a=1, b=2)
[('a', 1), ('b', 2)]
>>> f(b=2, a=1)
[('a', 1), ('b', 2)]
C implementation should be changed too. |
|
Date |
User |
Action |
Args |
2017-01-08 10:25:25 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger |
2017-01-08 10:25:24 | serhiy.storchaka | set | messageid: <1483871124.99.0.524505526853.issue29203@psf.upfronthosting.co.za> |
2017-01-08 10:25:24 | serhiy.storchaka | link | issue29203 messages |
2017-01-08 10:25:24 | serhiy.storchaka | create | |
|