Damien George
|
8f6ef8de48
|
tests/basics/namedtuple1: Add test for creating with pos and kw args.
|
7 years ago |
Paul Sokolovsky
|
a2803b74f4
|
tests/basics: Convert "sys.exit()" to "raise SystemExit".
|
8 years ago |
Ville Skyttä
|
ca16c38210
|
various: Spelling fixes
|
8 years ago |
Paul Sokolovsky
|
f980c70997
|
tests/basic/: Make various tests skippable.
To run the testsuite on small ports.
|
8 years ago |
Antonin ENFRUN
|
ca41dc2750
|
py/objnamedtuple: Allow passing field names as a tuple.
So the documentation's example works. Besides, a tuple can be more
memory efficient.
|
9 years ago |
Paul Sokolovsky
|
8c35f3979c
|
tests: Update for _io/_collections module having been renamed.
|
9 years ago |
Damien George
|
e5c4362a98
|
tests: Add some more tests to improve code coverage of corner cases.
|
10 years ago |
stijn
|
021dc44009
|
py: Allow keyword arguments for namedtuple
|
10 years ago |
stijn
|
12340147b0
|
py: Use sequence of strings for named tuple initialization
- remove single string initialization style
- take list of strings instead
- store list in the type for fast lookup
|
10 years ago |
Paul Sokolovsky
|
7067d69bcc
|
objnamedtuple: Support iteration.
|
11 years ago |
Paul Sokolovsky
|
48fdaad824
|
py: Rename collections module to _collections.
We're not going to implement all the plethora of types in there in C.
Funnily, CPython implements defaultdict in C, and namedtuple in Python.
|
11 years ago |
Paul Sokolovsky
|
e74f52b76c
|
namedtuple: Inherit unary/binary ops from tuple base class.
|
11 years ago |
Paul Sokolovsky
|
d08fd68664
|
Add basic collections.namedtuple implementation.
|
11 years ago |