Serhiy Storchaka added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29203> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com