STINNER Victor added the comment:

re_cache_ordered_dict_popitem.patch: LGTM, it can be pushed to the default 
branch.

--

"This is unlikely possible with current API of lru_cache. Testing flags before 
looking up in a cache adds an overhead."

Oh wait, I looked at the code and this case is complex because the function 
depends on the current locale if the LOCALE flag is set... A lookup in the the 
cache requires to get the current locale, but not if the LOCALE flag is not 
set... It seems too complex for @lru_cache().

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28293>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to