Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
8c0cee814fc0c4527ad39dc430802c331a804760
/
Lib
/
collections.py
8c0cee8
Issue 5021: doctest.testfile should set __name__
by Raymond Hettinger
· 17 years ago
6ee7bc0
Fix namedtuple bug reported by Glenn Linderman. Template did not form correctly if the field names were input in Unicode.
by Raymond Hettinger
· 17 years ago
e98839a
Issue3065: Fixed pickling of named tuples. Added tests.
by Raymond Hettinger
· 17 years ago
3c2523c
Issue 2903: Add __name__ in globals for namedtuple namespace.
by Raymond Hettinger
· 17 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
5816714
Expand comment.
by Raymond Hettinger
· 18 years ago
f5e8af1
Use get() instead of pop() for the optimized version of _replace().
by Raymond Hettinger
· 18 years ago
9a35921
Cleanup named tuple subclassing example.
by Raymond Hettinger
· 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
844f71b
Speed-up named tuple's _make() constructor.
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
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
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
bc288e8
Small speedup
by Raymond Hettinger
· 18 years ago
04a9a0e
Simplify implementation of __replace__()
by Raymond Hettinger
· 18 years ago
2e1af25
Error checking was too aggressive (reported by Chris Tismer)
by Raymond Hettinger
· 18 years ago
64c06e3
Backport of _abccoll.py by Benjamin Arangueren, issue 1383.
by Guido van Rossum
· 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
78f27e0
Make __fields__ read-only. Suggested by Issac Morland
by Raymond Hettinger
· 18 years ago
01a0957
Shorter name for namedtuple()
by Raymond Hettinger
· 18 years ago
abfd8df
More docs, error messages, and tests
by Raymond Hettinger
· 18 years ago
050afbf
Improve error messages
by Raymond Hettinger
· 18 years ago
163f622
Make the error messages more specific
by Raymond Hettinger
· 18 years ago
a48a299
Eliminate camelcase function name
by Raymond Hettinger
· 18 years ago
0e1d606
Better variable names
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
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
767debb
Allow all alphanumeric and underscores in type and field names.
by Raymond Hettinger
· 18 years ago
0d6a8cc
Replace assertion with straight error-checking.
by Raymond Hettinger
· 18 years ago
f3241a3
Fix beginner mistake -- don't mix spaces and tabs.
by Raymond Hettinger
· 18 years ago
5a41daf
Improvements to NamedTuple's implementation, tests, and documentation
by Raymond Hettinger
· 18 years ago
c37e5e0
Add collections.NamedTuple
by Raymond Hettinger
· 18 years ago
eb97988
Prepare collections module for pure python code entries.
by Raymond Hettinger
· 18 years ago