152 Commits (2f172d8f1525defe9bba4d49e967fdfc69151731)

Author SHA1 Message Date
Éric Araujo 374274db7f Fix the total_ordering decorator to handle cross-type comparisons 15 years ago
Raymond Hettinger 7e4c168385 Minor optimization -- factor a constant expression out of the inner-loop. 15 years ago
Raymond Hettinger 524359f9f7 Add comment. 15 years ago
Raymond Hettinger 23f9fc3448 Issue #10042: Fixed the total_ordering decorator to handle cross-type 15 years ago
Raymond Hettinger c79fb0e52d Issue 10593: Adopt Nick's suggestion for an lru_cache with maxsize=None. 15 years ago
Raymond Hettinger 00f2f97dbd Doc and docstring nits. 15 years ago
Raymond Hettinger 7496b4171e Add example, tighten text, and minor clean-ups. 15 years ago
Raymond Hettinger 5e20bab422 Neaten-up a bit. 15 years ago
Nick Coghlan 234515afe5 Issue 10586: change the new functools.lru_cache implementation to expose the maximum and current cache sizes through the public statistics API. This API is now a single function that returns a named tuple. 15 years ago
Raymond Hettinger 5fa40c01ad Clean-up docstring, comments, and whitespace. 15 years ago
Raymond Hettinger 3255c63e28 Improve comment 15 years ago
Raymond Hettinger 1006bd459b Future proof total_ordering against changes in methods defined on object. 15 years ago
Raymond Hettinger bd88802c1f Revert r84700 which had an unfortunate performance cost. 16 years ago
Raymond Hettinger 22b46e0ba9 Separate positional arguments from localized globals. 16 years ago
Benjamin Peterson 1017ae5253 add reduce and partial to __all__ 16 years ago
Raymond Hettinger f45abc97bf Add method to OrderedDict for repositioning keys to the ends. 16 years ago
Raymond Hettinger 4c7c9af542 Clean-up functools.total_ordering(). 16 years ago
Raymond Hettinger 02566ec89f Adopt more descriptive attribute names as suggested on python-dev. 16 years ago
Raymond Hettinger af1e140334 Readability nit. 16 years ago
Raymond Hettinger 7babc1b6a5 Better method name. Tighten inner-loop with bound methods. 16 years ago
Raymond Hettinger 38d17e3df0 Speed-up cache updates 16 years ago
Benjamin Peterson 16925e8539 remove parens 16 years ago
Benjamin Peterson 9c2930e4be run total_ordering() tests, and fix the function (default comparisons shouldn't be considered) 16 years ago
Nick Coghlan 9887683f74 Document and test the resolution of issue 3445 (tolerate missing attributes in functools.update_wrapper, previously implemented as a side effect of the __annotations__ copying patch) and implement issue 9567 (add a __wrapped__ attribute when using update_wrapper) 16 years ago
Raymond Hettinger 0b5669c0f5 Fix __all__. 16 years ago
Raymond Hettinger bc653d1abe Remove unused imports 16 years ago
Raymond Hettinger f309828175 Remove the lfu_cache. Add more tests. 16 years ago
Raymond Hettinger 0f56e90f05 Support cache sizes. 16 years ago
Raymond Hettinger 5202fadb2c Localize one more builtin lookup. 16 years ago
Raymond Hettinger cbe8813f18 Add locks to make the caches well behaved in multi-threaded code. 16 years ago
Benjamin Peterson 1f594ad424 use same quoting as the rest of the file 16 years ago
Raymond Hettinger c6d80c1bef Issue 8814: functools.wraps() did not copy __annotations__. 16 years ago
Antoine Pitrou 560f7647ce Issue #8814: function annotations (the `__annotations__` attribute) 16 years ago
Georg Brandl 2e7346acc9 Re-commit r83327 now that the release is done. 16 years ago
Georg Brandl 014e0ca58e Revert r83327. This will have to wait until after the alpha1 release. 16 years ago
Raymond Hettinger 9e46ef819c Add functools.lfu_cache() and functools.lru_cache(). 16 years ago
Georg Brandl e5a2673f9a Merged revisions 80068 via svnmerge from 16 years ago
Georg Brandl ea56710cda #5341: fix typo and adapt docstring syntax. 16 years ago
Raymond Hettinger 56de7e2a36 Issue 8361: Remove assert from functools.total_ordering 16 years ago
Raymond Hettinger 4e45512de2 Issue 8361: Remove assert from functools.total_ordering 16 years ago
Raymond Hettinger c50846aaef Forward port total_ordering() and cmp_to_key(). 16 years ago
Raymond Hettinger e1d665a90e Classes that override __eq__ also need to define __hash__. 16 years ago
Raymond Hettinger bb006cf26c Add tests for cmp_to_key. 16 years ago
Raymond Hettinger a551f31d48 Add functools.CmpToKey() 16 years ago
Brett Cannon 83e818415a Copy reduce() to _functools so to have functools.reduce() not raise a warning 18 years ago
Guido van Rossum d51b579c51 Patch # 1739906 by Christian Heimes -- add reduce to functools (importing 19 years ago
Thomas Wouters 89f507fe8c Four months of trunk changes (including a few releases...) 19 years ago
Andrew M. Kuchling 3d6a834e29 [Bug #1576241] Let functools.wraps work with built-in functions 19 years ago
Andrew M. Kuchling 41eb7164df [Bug #1576241] Let functools.wraps work with built-in functions 19 years ago
Andrew M. Kuchling efb57072fe Typo fix 19 years ago