Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
5a9fed75bd1c9da401004fd84c72437c1404a122
/
Doc
/
library
/
collections.rst
5a9fed7
Fix-up the enumerate type example and move it to the end.
by Raymond Hettinger
· 17 years ago
c7b0592
reformat some documentation of classes so methods and attributes are under the class directive
by Benjamin Peterson
· 17 years ago
d289ea6
#2502: add example how to do enum types with named tuples.
by Georg Brandl
· 17 years ago
4c8bbe6
Make collections' doctests executable.
by Georg Brandl
· 17 years ago
907a720
A lot more typo fixes by Ori Avtalion.
by Georg Brandl
· 17 years ago
bc4ffc1
Backport ABC docs
by Raymond Hettinger
· 18 years ago
9bba7b7
Removed an unnecessary and confusing paragraph from the namedtuple docs.
by Raymond Hettinger
· 18 years ago
0fe6ca4
Better variable name in an example.
by Raymond Hettinger
· 18 years ago
171f391
Minor wordsmithing.
by Raymond Hettinger
· 18 years ago
e805782
Fix-up half-written paragraph in the docs
by Raymond Hettinger
· 18 years ago
f59e962
Refactor if/elif chain for clarity and speed. Remove dependency on subclasses having to implement _empty and _full.
by Raymond Hettinger
· 18 years ago
d1ef854
Run doctests on the collections module
by Raymond Hettinger
· 18 years ago
15b5e55
Neaten-up the named tuple docs
by Raymond Hettinger
· 18 years ago
e850c46
Clarify how to add a field to a named tuple.
by Raymond Hettinger
· 18 years ago
e165508
Examples for named tuple subclassing should include __slots__
by Raymond Hettinger
· 18 years ago
dc1854d
Fix typo
by Raymond Hettinger
· 18 years ago
e11230e
Syntax highlighting only works when >>> lines are accompanied by ... lines
by Raymond Hettinger
· 18 years ago
ac5742e
Docs on named tuple's naming conventions and limits of subclassing
by Raymond Hettinger
· 18 years ago
f6b769b
Documentation nits.
by Raymond Hettinger
· 18 years ago
f5e8af1
Use get() instead of pop() for the optimized version of _replace().
by Raymond Hettinger
· 18 years ago
fb3ced6
Minor markup fix
by Raymond Hettinger
· 18 years ago
9a35921
Cleanup named tuple subclassing example.
by Raymond Hettinger
· 18 years ago
b3255ed
Restore "somenamedtuple" as the "class" for named tuple attrs.
by Georg Brandl
· 18 years ago
503f293
Clean up markup.
by Georg Brandl
· 18 years ago
dc55f35
Add another named tuple subclassing example.
by Raymond Hettinger
· 18 years ago
1db6f80
Cleanup subclassing example to more clearly show fixed-width print format.
by Raymond Hettinger
· 18 years ago
b8e0072
Add subclassing example to docs for named tuples.
by Raymond Hettinger
· 18 years ago
1166872
Small code simplification. Forgot that classmethods can be called from intances.
by Raymond Hettinger
· 18 years ago
1b50fd7
Add error-checking to namedtuple's _replace() method.
by Raymond Hettinger
· 18 years ago
02740f7
Improve namedtuple's _cast() method with a docstring, new name, and error-checking.
by Raymond Hettinger
· 18 years ago
e0734e7
Minor fix-ups to named tuples:
by Raymond Hettinger
· 18 years ago
b19be57
Some cleanup in the docs.
by Georg Brandl
· 18 years ago
85dfcf3
Users demand iterable input for named tuples. The author capitulates.
by Raymond Hettinger
· 18 years ago
8777bca
Simplify and speedup _asdict() for named tuples.
by Raymond Hettinger
· 18 years ago
88880b2
Add more namedtuple() test cases. Neaten the code and comments.
by Raymond Hettinger
· 18 years ago
e846f38
Add usage note
by Raymond Hettinger
· 18 years ago
07ae83f
Faster and simpler _replace() method
by Raymond Hettinger
· 18 years ago
48eca67
Add line spacing for readability
by Raymond Hettinger
· 18 years ago
42da874
Cleaner method naming convention
by Raymond Hettinger
· 18 years ago
04a9a0e
Simplify implementation of __replace__()
by Raymond Hettinger
· 18 years ago
8465ae8
Fix signature in example
by Raymond Hettinger
· 18 years ago
bc69349
Add example for use cases requiring default values.
by Raymond Hettinger
· 18 years ago
7c3738e
Example of multiple replacements.
by Raymond Hettinger
· 18 years ago
213ae01
Fixup example in docs.
by Raymond Hettinger
· 18 years ago
5681cbc
Small improvement to the implementation of __replace__().
by Raymond Hettinger
· 18 years ago
eeeb9c4
Accept Issac Morland's suggestion for __replace__ to allow multiple replacements
by Raymond Hettinger
· 18 years ago
abfd8df
More docs, error messages, and tests
by Raymond Hettinger
· 18 years ago
6899586
Accept Jim Jewett's api suggestion to use None instead of -1 to indicate unbounded deques.
by Raymond Hettinger
· 18 years ago
a48a299
Eliminate camelcase function name
by Raymond Hettinger
· 18 years ago
b6893f2
Missed a line in the docs
by Raymond Hettinger
· 18 years ago
2115bbc
Add comments to NamedTuple code.
by Raymond Hettinger
· 18 years ago
a7fc4b1
Add __asdict__() to NamedTuple and refine the docs.
by Raymond Hettinger
· 18 years ago
7268e9d
Fit nits
by Raymond Hettinger
· 18 years ago
cbab594
Cleanup docs for NamedTuple.
by Raymond Hettinger
· 18 years ago
2b03d45
Handle corner cased on 0-tuples and 1-tuples. Add verbose option so people can see how it works.
by Raymond Hettinger
· 18 years ago
d36a60e
Sync-up named tuples with the latest version of the ASPN recipe.
by Raymond Hettinger
· 18 years ago
7f626f4
Added more cross-references.
by Mark Summerfield
· 18 years ago
8ec7f65
Move the 2.6 reST doc tree in place.
by Georg Brandl
· 18 years ago