Raymond Hettinger
|
4b779b3785
|
Issue 13177: Make tracebacks more readable by avoiding chained exceptions in the lru_cache.
|
2011-10-15 23:50:42 -07:00 |
|
Raymond Hettinger
|
8cd2e5f751
|
Sync-up minor code edits with the default branch.
|
2011-05-05 14:15:12 -07:00 |
|
Raymond Hettinger
|
003be52932
|
Fix __hash__ in functools.cmp_to_key() to work with collections.Hashable.
|
2011-05-03 11:01:32 -07:00 |
|
Raymond Hettinger
|
a0d1d96771
|
Issue #11628: cmp_to_key should use __slots__.
|
2011-03-21 17:50:28 -07:00 |
|
Raymond Hettinger
|
524359f9f7
|
Add comment.
|
2011-01-11 22:08:55 +00:00 |
|
Raymond Hettinger
|
23f9fc3448
|
Issue #10042: Fixed the total_ordering decorator to handle cross-type
comparisons that could lead to infinite recursion.
|
2011-01-08 07:01:56 +00:00 |
|
Raymond Hettinger
|
c79fb0e52d
|
Issue 10593: Adopt Nick's suggestion for an lru_cache with maxsize=None.
|
2010-12-01 03:45:41 +00:00 |
|
Raymond Hettinger
|
00f2f97dbd
|
Doc and docstring nits.
|
2010-12-01 00:47:56 +00:00 |
|
Raymond Hettinger
|
7496b4171e
|
Add example, tighten text, and minor clean-ups.
|
2010-11-30 19:15:45 +00:00 |
|
Raymond Hettinger
|
5e20bab422
|
Neaten-up a bit.
|
2010-11-30 07:13:04 +00:00 |
|
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.
|
2010-11-30 06:19:46 +00:00 |
|
Raymond Hettinger
|
5fa40c01ad
|
Clean-up docstring, comments, and whitespace.
|
2010-11-25 08:11:57 +00:00 |
|
Raymond Hettinger
|
3255c63e28
|
Improve comment
|
2010-09-16 00:31:21 +00:00 |
|
Raymond Hettinger
|
1006bd459b
|
Future proof total_ordering against changes in methods defined on object.
|
2010-09-14 22:55:13 +00:00 |
|
Raymond Hettinger
|
bd88802c1f
|
Revert r84700 which had an unfortunate performance cost.
|
2010-09-11 08:07:42 +00:00 |
|
Raymond Hettinger
|
22b46e0ba9
|
Separate positional arguments from localized globals.
|
2010-09-11 00:05:44 +00:00 |
|
Benjamin Peterson
|
1017ae5253
|
add reduce and partial to __all__
|
2010-09-10 23:35:52 +00:00 |
|
Raymond Hettinger
|
f45abc97bf
|
Add method to OrderedDict for repositioning keys to the ends.
|
2010-09-06 21:26:09 +00:00 |
|
Raymond Hettinger
|
4c7c9af542
|
Clean-up functools.total_ordering().
|
2010-09-05 05:57:35 +00:00 |
|
Raymond Hettinger
|
02566ec89f
|
Adopt more descriptive attribute names as suggested on python-dev.
|
2010-09-04 22:46:06 +00:00 |
|
Raymond Hettinger
|
af1e140334
|
Readability nit.
|
2010-09-02 19:58:35 +00:00 |
|
Raymond Hettinger
|
7babc1b6a5
|
Better method name. Tighten inner-loop with bound methods.
|
2010-09-02 19:56:28 +00:00 |
|
Raymond Hettinger
|
38d17e3df0
|
Speed-up cache updates
|
2010-09-02 09:44:28 +00:00 |
|
Benjamin Peterson
|
16925e8539
|
remove parens
|
2010-08-24 21:30:14 +00:00 |
|
Benjamin Peterson
|
9c2930e4be
|
run total_ordering() tests, and fix the function (default comparisons shouldn't be considered)
|
2010-08-23 17:40:33 +00:00 |
|