Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue 6370: Performance issue with collections.Counter(). | Raymond Hettinger | 2009-06-29 | 1 | -2/+4 |
| | |||||
* | Revert r73401 per Raymond Hettinger's request. | Alexandre Vassalotti | 2009-06-12 | 1 | -6/+4 |
| | | | | | | The rational is the change might cause imcompatiblity problems with PyYAML. In addition, Raymond wants to kept the different versions of collections synchronized across Python versions. | ||||
* | Make pickling of OrderedDict instances more efficient. | Alexandre Vassalotti | 2009-06-12 | 1 | -4/+6 |
| | |||||
* | Fix field name conflicts for named tuples. | Raymond Hettinger | 2009-05-27 | 1 | -7/+7 |
| | |||||
* | using sys._getframe(x), where x > 0 doesnt' work on IronPython | Benjamin Peterson | 2009-05-05 | 1 | -2/+5 |
| | |||||
* | Minor factoring. | Raymond Hettinger | 2009-04-08 | 1 | -1/+1 |
| | |||||
* | Add docstrings. | Raymond Hettinger | 2009-04-08 | 1 | -0/+25 |
| | |||||
* | Replace the localized min/max calls with normal if/else | Raymond Hettinger | 2009-04-04 | 1 | -4/+4 |
| | |||||
* | Have namedtuple's field renamer assign names that | Raymond Hettinger | 2009-04-02 | 1 | -1/+1 |
| | | | | are consistent with the corresponding tuple index. | ||||
* | Separate initialization from clearing. | Raymond Hettinger | 2009-03-25 | 1 | -3/+4 |
| | |||||
* | Make imported name private and wrap long-line. | Raymond Hettinger | 2009-03-23 | 1 | -3/+4 |
| | |||||
* | Move initialization of root link to __init__. | Raymond Hettinger | 2009-03-23 | 1 | -1/+2 |
| | |||||
* | Add more comments. Improve variable names. | Raymond Hettinger | 2009-03-23 | 1 | -32/+44 |
| | | | | | | Make links clearer by using a Link object instead of a list. Use proxy links to avoid circular references. | ||||
* | Fix typo | Raymond Hettinger | 2009-03-19 | 1 | -2/+2 |
| | |||||
* | * Add implementation notes. | Raymond Hettinger | 2009-03-19 | 1 | -13/+25 |
| | | | | | * Re-order methods so that those touching the underlying data structure come first and the derived methods come last. | ||||
* | * Add clearer comment to initialization code. | Raymond Hettinger | 2009-03-19 | 1 | -3/+3 |
| | | | | | | * Add optional argument to popitem() -- modeled after Anthon van der Neut's C version. * Fix method markup in docs. | ||||
* | Improve implementation with better underlying data structure | Raymond Hettinger | 2009-03-19 | 1 | -14/+26 |
| | | | | | | for O(1) deletions. Big-Oh performance now the same as regular dictionaries. Uses a doubly-linked list instead of a list/seq to track insertion order. | ||||
* | Use mixin methods where possible. (2.7 only -- these don't all exist in 3.0) | Raymond Hettinger | 2009-03-18 | 1 | -18/+7 |
| | |||||
* | Backport 70140, 70141, 70143, and 70144. | Raymond Hettinger | 2009-03-03 | 1 | -5/+9 |
| | | | | | Adds tests, switches from list to deque, fixes __reduce__ which was unnecessarily copying __keys. | ||||
* | Minor simplification. | Raymond Hettinger | 2009-03-03 | 1 | -1/+1 |
| | |||||
* | Make the underlying data structure more private. | Raymond Hettinger | 2009-03-03 | 1 | -15/+19 |
| | |||||
* | Backport 70106: Add OrderedDict support to collections.namedtuple(). | Raymond Hettinger | 2009-03-03 | 1 | -5/+5 |
| | |||||
* | Backport PEP 372: OrderedDict() | Raymond Hettinger | 2009-03-03 | 1 | -3/+93 |
| | |||||
* | Issue 1818: collections.namedtuple() to support automatic renaming of ↵ | Raymond Hettinger | 2009-02-10 | 1 | -2/+12 |
| | | | | invalid fieldnames. | ||||
* | Issue 5021: doctest.testfile should set __name__ | Raymond Hettinger | 2009-01-27 | 1 | -1/+1 |
| | |||||
* | Update comments and add an optimized path for Counter.update(). | Raymond Hettinger | 2009-01-22 | 1 | -3/+5 |
| | |||||
* | Simplify explanation of multiset operations by removing restrictions on ↵ | Raymond Hettinger | 2009-01-21 | 1 | -2/+2 |
| | | | | negative inputs. | ||||
* | Make merging easier by formattng comment blocks the same in Py3.1 | Raymond Hettinger | 2009-01-20 | 1 | -3/+5 |
| | |||||
* | Add Counter() to __all__. | Raymond Hettinger | 2009-01-20 | 1 | -1/+1 |
| | |||||
* | Build-outs for Counter() class: | Raymond Hettinger | 2009-01-20 | 1 | -8/+91 |
| | | | | | | * Constructor and update() support keyword args (like their dict counterparts). * The 'del' statement no longer raises KeyError for missing values. * Add multiset operations: __add__, __sub__, __and__, __or__. | ||||
* | Speed-up __repr__. Eliminate duplicate tests. Use a from-irmport. | Raymond Hettinger | 2009-01-13 | 1 | -48/+3 |
| | |||||
* | Fixup and simplify docstrings and doctests. | Raymond Hettinger | 2009-01-13 | 1 | -16/+14 |
| | |||||
* | Simplify Counter() API. Replace items keyword argument | Raymond Hettinger | 2009-01-13 | 1 | -22/+26 |
| | | | | | | | with a mapping. Makes Counter() idempotent, makes update() API the same as Counter.__init__(), makes a more readable repr, makes the API more dict-like, and allows Steven Bethard's update() example to work. | ||||
* | Issue 1696199: Add collections.Counter(). | Raymond Hettinger | 2009-01-12 | 1 | -0/+201 |
| | |||||
* | Fix namedtuple bug reported by Glenn Linderman. Template did not form ↵ | Raymond Hettinger | 2008-09-25 | 1 | -1/+1 |
| | | | | correctly if the field names were input in Unicode. | ||||
* | Issue3065: Fixed pickling of named tuples. Added tests. | Raymond Hettinger | 2008-06-09 | 1 | -1/+3 |
| | |||||
* | Issue 2903: Add __name__ in globals for namedtuple namespace. | Raymond Hettinger | 2008-05-30 | 1 | -2/+3 |
| | |||||
* | Neaten-up the named tuple docs | Raymond Hettinger | 2008-01-10 | 1 | -1/+1 |
| | |||||
* | Clarify how to add a field to a named tuple. | Raymond Hettinger | 2008-01-10 | 1 | -0/+3 |
| | |||||
* | Examples for named tuple subclassing should include __slots__ | Raymond Hettinger | 2008-01-10 | 1 | -1/+3 |
| | |||||
* | Expand comment. | Raymond Hettinger | 2008-01-08 | 1 | -1/+2 |
| | |||||
* | Use get() instead of pop() for the optimized version of _replace(). | Raymond Hettinger | 2008-01-07 | 1 | -1/+1 |
| | |||||
* | Cleanup named tuple subclassing example. | Raymond Hettinger | 2008-01-07 | 1 | -3/+4 |
| | |||||
* | Add another named tuple subclassing example. | Raymond Hettinger | 2008-01-07 | 1 | -0/+8 |
| | |||||
* | Cleanup subclassing example to more clearly show fixed-width print format. | Raymond Hettinger | 2008-01-07 | 1 | -2/+1 |
| | |||||
* | Add subclassing example to docs for named tuples. | Raymond Hettinger | 2008-01-07 | 1 | -2/+9 |
| | |||||
* | Speed-up named tuple's _make() constructor. | Raymond Hettinger | 2008-01-06 | 1 | -2/+2 |
| | |||||
* | Small code simplification. Forgot that classmethods can be called from ↵ | Raymond Hettinger | 2008-01-06 | 1 | -1/+1 |
| | | | | intances. | ||||
* | Add error-checking to namedtuple's _replace() method. | Raymond Hettinger | 2008-01-05 | 1 | -1/+4 |
| | |||||
* | Improve namedtuple's _cast() method with a docstring, new name, and ↵ | Raymond Hettinger | 2008-01-05 | 1 | -2/+9 |
| | | | | error-checking. |