summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
Commit message (Collapse)AuthorAgeFilesLines
...
* reformat some documentation of classes so methods and attributes are under ↵Benjamin Peterson2008-04-251-45/+48
| | | | the class directive
* #2502: add example how to do enum types with named tuples.Georg Brandl2008-03-281-0/+10
|
* Make collections' doctests executable.Georg Brandl2008-03-221-43/+51
| | | | (The <BLANKLINE>s will be stripped from presentation output.)
* A lot more typo fixes by Ori Avtalion.Georg Brandl2008-02-221-2/+2
|
* Backport ABC docsRaymond Hettinger2008-02-111-8/+120
|
* Removed an unnecessary and confusing paragraph from the namedtuple docs.Raymond Hettinger2008-01-271-10/+1
|
* Better variable name in an example.Raymond Hettinger2008-01-181-2/+2
|
* Minor wordsmithing.Raymond Hettinger2008-01-161-2/+1
|
* Fix-up half-written paragraph in the docsRaymond Hettinger2008-01-151-7/+3
|
* Refactor if/elif chain for clarity and speed. Remove dependency on ↵Raymond Hettinger2008-01-151-0/+8
| | | | subclasses having to implement _empty and _full.
* Run doctests on the collections moduleRaymond Hettinger2008-01-111-1/+1
|
* Neaten-up the named tuple docsRaymond Hettinger2008-01-101-7/+7
|
* Clarify how to add a field to a named tuple.Raymond Hettinger2008-01-101-1/+1
|
* Examples for named tuple subclassing should include __slots__Raymond Hettinger2008-01-101-3/+4
|
* Fix typoRaymond Hettinger2008-01-091-1/+1
|
* Syntax highlighting only works when >>> lines are accompanied by ... linesRaymond Hettinger2008-01-091-8/+8
|
* Docs on named tuple's naming conventions and limits of subclassingRaymond Hettinger2008-01-081-1/+7
|
* Documentation nits.Raymond Hettinger2008-01-071-5/+5
|
* Use get() instead of pop() for the optimized version of _replace().Raymond Hettinger2008-01-071-1/+1
|
* Minor markup fixRaymond Hettinger2008-01-071-1/+1
|
* Cleanup named tuple subclassing example.Raymond Hettinger2008-01-071-10/+12
|
* Restore "somenamedtuple" as the "class" for named tuple attrs.Georg Brandl2008-01-071-11/+7
|
* Clean up markup.Georg Brandl2008-01-071-7/+5
|
* Add another named tuple subclassing example.Raymond Hettinger2008-01-071-0/+8
|
* Cleanup subclassing example to more clearly show fixed-width print format.Raymond Hettinger2008-01-071-5/+5
|
* Add subclassing example to docs for named tuples.Raymond Hettinger2008-01-071-6/+13
|
* Small code simplification. Forgot that classmethods can be called from ↵Raymond Hettinger2008-01-061-1/+1
| | | | intances.
* Add error-checking to namedtuple's _replace() method.Raymond Hettinger2008-01-051-1/+4
|
* Improve namedtuple's _cast() method with a docstring, new name, and ↵Raymond Hettinger2008-01-051-16/+16
| | | | error-checking.
* Minor fix-ups to named tuples:Raymond Hettinger2008-01-041-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 Brandl2007-12-291-1/+1
|
* Users demand iterable input for named tuples. The author capitulates.Raymond Hettinger2007-12-181-16/+21
|
* Simplify and speedup _asdict() for named tuples.Raymond Hettinger2007-12-181-2/+2
|
* Add more namedtuple() test cases. Neaten the code and comments.Raymond Hettinger2007-12-181-3/+5
|
* Add usage noteRaymond Hettinger2007-12-141-2/+10
|
* Faster and simpler _replace() methodRaymond Hettinger2007-12-141-1/+1
|
* Add line spacing for readabilityRaymond Hettinger2007-12-141-1/+8
|
* Cleaner method naming conventionRaymond Hettinger2007-12-141-15/+15
|
* Simplify implementation of __replace__()Raymond Hettinger2007-12-131-1/+1
|
* Fix signature in exampleRaymond Hettinger2007-11-171-1/+1
|
* Add example for use cases requiring default values.Raymond Hettinger2007-11-151-0/+9
|
* Example of multiple replacements.Raymond Hettinger2007-11-151-2/+2
|
* Fixup example in docs.Raymond Hettinger2007-11-151-1/+1
|
* Small improvement to the implementation of __replace__().Raymond Hettinger2007-11-151-1/+1
|
* Accept Issac Morland's suggestion for __replace__ to allow multiple replacementsRaymond Hettinger2007-11-151-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.
* More docs, error messages, and testsRaymond Hettinger2007-10-161-3/+7
|
* Accept Jim Jewett's api suggestion to use None instead of -1 to indicate ↵Raymond Hettinger2007-10-101-1/+1
| | | | unbounded deques.
* Eliminate camelcase function nameRaymond Hettinger2007-10-081-18/+26
|
* Missed a line in the docsRaymond Hettinger2007-10-081-1/+1
|
* Add comments to NamedTuple code.Raymond Hettinger2007-10-081-3/+5
| | | | | Let the field spec be either a string or a non-string sequence (suggested by Martin Blais with use cases). Improve the error message in the case of a SyntaxError (caused by a duplicate field name).