283:70939defa51d
|
2016-11-30 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added dict support, changing the literal instantiators to use functions
appropriate for sequences or mappings that set the __data__ attribute on each
new instance.
Added a __hash__ method for integers. |
|
|
encoders.py generator.py lib/__builtins__/dict.py lib/__builtins__/int.py lib/native.py templates/native.c templates/native.h templates/progops.c templates/progops.h templates/types.h ...
|
|
282:639a285a92fe
|
2016-11-29 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added the index method to sequences. Raise TypeError instances. |
|
|
lib/__builtins__/sequence.py tests/list.py
|
|
281:03dad612d9e7
|
2016-11-29 |
Paul Boddie |
changeset
files
shortlog
graph
|
Expanded ValueError to accept a value argument. |
|
|
lib/__builtins__/exception/base.py
|
|
280:c498ceec120e
|
2016-11-29 |
Paul Boddie |
changeset
files
shortlog
graph
|
Renamed the data member of __attr to seqvalue and __newdata to __newfragment.
Added some commentary in the native module. |
|
|
generator.py lib/native.py templates/native.c templates/progops.c templates/progops.h templates/types.h
|
|
279:22aea7bc1acd
|
2016-11-29 |
Paul Boddie |
changeset
files
shortlog
graph
|
Moved __contains__ to the sequence module, providing an implementation.
Added tests of "in", "not in" and operator syntax. |
|
|
lib/__builtins__/list.py lib/__builtins__/sequence.py tests/list.py tests/operator_syntax.py
|
|
278:d16731ea8568
|
2016-11-29 |
Paul Boddie |
changeset
files
shortlog
graph
|
Introduced default results for certain operators instead of raising TypeError.
Removed a reminder comment that should be placed elsewhere. |
|
|
lib/operator/comparison.py lib/operator/core.py
|
|
277:661a64c3c237
|
2016-11-29 |
Paul Boddie |
changeset
files
shortlog
graph
|
Fixed "in" and "not in" operator parameter usage.
Removed a reminder comment that should be placed elsewhere. |
|
|
lib/operator/binary.py
|
|
276:a2cb05a2a44b
|
2016-11-29 |
Paul Boddie |
changeset
files
shortlog
graph
|
Renamed the dictionary test program. |
|
|
tests/dict.py tests/dicts.py
|
|
275:6a85c86bb1f1
|
2016-11-29 |
Paul Boddie |
changeset
files
shortlog
graph
|
Changed lplc to always return 1 upon failure, eliminating unnecessary options.
Changed the test runner to continue after expected test failures. |
|
|
lplc test_all.sh
|
|
274:5be8a7aa0f86
|
2016-11-29 |
Paul Boddie |
changeset
files
shortlog
graph
|
Support attribute accesses on the type class using other classes as contexts,
treating self (the context) in type methods as either class or instance.
This simplifies the str and repr functions but introduces a special case in the
deducer for the type class and makes the __test_context operation more expensive
for non-instance contexts. |
|
|
deducer.py generator.py inspector.py lib/__builtins__/core.py lib/__builtins__/identity.py lib/__builtins__/str.py templates/ops.c templates/ops.h
|
|