Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add missing ABCs to list. | Georg Brandl | 2008-07-08 | 1 | -36/+44 |
| | |||||
* | Fix whitespace in example code. | Raymond Hettinger | 2008-06-27 | 1 | -2/+2 |
| | |||||
* | Issue3065: Fixed pickling of named tuples. Added tests. | Raymond Hettinger | 2008-06-09 | 1 | -0/+3 |
| | |||||
* | Fix typo | Raymond Hettinger | 2008-05-23 | 1 | -1/+1 |
| | |||||
* | Fix-up the enumerate type example and move it to the end. | Raymond Hettinger | 2008-05-08 | 1 | -10/+9 |
| | |||||
* | reformat some documentation of classes so methods and attributes are under ↵ | Benjamin Peterson | 2008-04-25 | 1 | -45/+48 |
| | | | | the class directive | ||||
* | #2502: add example how to do enum types with named tuples. | Georg Brandl | 2008-03-28 | 1 | -0/+10 |
| | |||||
* | Make collections' doctests executable. | Georg Brandl | 2008-03-22 | 1 | -43/+51 |
| | | | | (The <BLANKLINE>s will be stripped from presentation output.) | ||||
* | A lot more typo fixes by Ori Avtalion. | Georg Brandl | 2008-02-22 | 1 | -2/+2 |
| | |||||
* | Backport ABC docs | Raymond Hettinger | 2008-02-11 | 1 | -8/+120 |
| | |||||
* | Removed an unnecessary and confusing paragraph from the namedtuple docs. | Raymond Hettinger | 2008-01-27 | 1 | -10/+1 |
| | |||||
* | Better variable name in an example. | Raymond Hettinger | 2008-01-18 | 1 | -2/+2 |
| | |||||
* | Minor wordsmithing. | Raymond Hettinger | 2008-01-16 | 1 | -2/+1 |
| | |||||
* | Fix-up half-written paragraph in the docs | Raymond Hettinger | 2008-01-15 | 1 | -7/+3 |
| | |||||
* | Refactor if/elif chain for clarity and speed. Remove dependency on ↵ | Raymond Hettinger | 2008-01-15 | 1 | -0/+8 |
| | | | | subclasses having to implement _empty and _full. | ||||
* | Run doctests on the collections module | Raymond Hettinger | 2008-01-11 | 1 | -1/+1 |
| | |||||
* | Neaten-up the named tuple docs | Raymond Hettinger | 2008-01-10 | 1 | -7/+7 |
| | |||||
* | Clarify how to add a field to a named tuple. | Raymond Hettinger | 2008-01-10 | 1 | -1/+1 |
| | |||||
* | Examples for named tuple subclassing should include __slots__ | Raymond Hettinger | 2008-01-10 | 1 | -3/+4 |
| | |||||
* | Fix typo | Raymond Hettinger | 2008-01-09 | 1 | -1/+1 |
| | |||||
* | Syntax highlighting only works when >>> lines are accompanied by ... lines | Raymond Hettinger | 2008-01-09 | 1 | -8/+8 |
| | |||||
* | Docs on named tuple's naming conventions and limits of subclassing | Raymond Hettinger | 2008-01-08 | 1 | -1/+7 |
| | |||||
* | Documentation nits. | Raymond Hettinger | 2008-01-07 | 1 | -5/+5 |
| | |||||
* | Use get() instead of pop() for the optimized version of _replace(). | Raymond Hettinger | 2008-01-07 | 1 | -1/+1 |
| | |||||
* | Minor markup fix | Raymond Hettinger | 2008-01-07 | 1 | -1/+1 |
| | |||||
* | Cleanup named tuple subclassing example. | Raymond Hettinger | 2008-01-07 | 1 | -10/+12 |
| | |||||
* | Restore "somenamedtuple" as the "class" for named tuple attrs. | Georg Brandl | 2008-01-07 | 1 | -11/+7 |
| | |||||
* | Clean up markup. | Georg Brandl | 2008-01-07 | 1 | -7/+5 |
| | |||||
* | 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 | -5/+5 |
| | |||||
* | Add subclassing example to docs for named tuples. | Raymond Hettinger | 2008-01-07 | 1 | -6/+13 |
| | |||||
* | 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 | -16/+16 |
| | | | | error-checking. | ||||
* | Minor fix-ups to named tuples: | Raymond Hettinger | 2008-01-04 | 1 | -10/+13 |
| | | | | | | | | | * Make the _replace() method respect subclassing. * Using property() to make _fields read-only wasn't a good idea. It caused len(Point._fields) to fail. * Add note to _cast() about length checking and alternative with the star-operator. | ||||
* | Some cleanup in the docs. | Georg Brandl | 2007-12-29 | 1 | -1/+1 |
| | |||||
* | Users demand iterable input for named tuples. The author capitulates. | Raymond Hettinger | 2007-12-18 | 1 | -16/+21 |
| | |||||
* | Simplify and speedup _asdict() for named tuples. | Raymond Hettinger | 2007-12-18 | 1 | -2/+2 |
| | |||||
* | Add more namedtuple() test cases. Neaten the code and comments. | Raymond Hettinger | 2007-12-18 | 1 | -3/+5 |
| | |||||
* | Add usage note | Raymond Hettinger | 2007-12-14 | 1 | -2/+10 |
| | |||||
* | Faster and simpler _replace() method | Raymond Hettinger | 2007-12-14 | 1 | -1/+1 |
| | |||||
* | Add line spacing for readability | Raymond Hettinger | 2007-12-14 | 1 | -1/+8 |
| | |||||
* | Cleaner method naming convention | Raymond Hettinger | 2007-12-14 | 1 | -15/+15 |
| | |||||
* | Simplify implementation of __replace__() | Raymond Hettinger | 2007-12-13 | 1 | -1/+1 |
| | |||||
* | Fix signature in example | Raymond Hettinger | 2007-11-17 | 1 | -1/+1 |
| | |||||
* | Add example for use cases requiring default values. | Raymond Hettinger | 2007-11-15 | 1 | -0/+9 |
| | |||||
* | Example of multiple replacements. | Raymond Hettinger | 2007-11-15 | 1 | -2/+2 |
| | |||||
* | Fixup example in docs. | Raymond Hettinger | 2007-11-15 | 1 | -1/+1 |
| | |||||
* | Small improvement to the implementation of __replace__(). | Raymond Hettinger | 2007-11-15 | 1 | -1/+1 |
| | |||||
* | Accept Issac Morland's suggestion for __replace__ to allow multiple replacements | Raymond Hettinger | 2007-11-15 | 1 | -13/+24 |
| | | | | | | (suprisingly, this simplifies the signature, improves clarity, and is comparably fast). Update the docs to reflect a previous change to the function name. Add an example to the docs showing how to override the default __repr__ method. |