This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients rhettinger, serhiy.storchaka
Date 2017-01-08.10:25:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483871124.99.0.524505526853.issue29203@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-01-08 10:25:25serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger
2017-01-08 10:25:24serhiy.storchakasetmessageid: <1483871124.99.0.524505526853.issue29203@psf.upfronthosting.co.za>
2017-01-08 10:25:24serhiy.storchakalinkissue29203 messages
2017-01-08 10:25:24serhiy.storchakacreate