371:d75ff26f7c0a
|
2016-12-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Implemented the reduce function, adding some relevant tests. |
|
|
lib/__builtins__/iterable.py tests/range.py
|
|
370:2ab8235da060
|
2016-12-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Implemented enumerate, filter, map, reversed and sum. Fixed max and min.
Extended the tests to cover these functions. |
|
|
lib/__builtins__/iterable.py tests/range.py tests/slice.py
|
|
369:2eb43643f5ed
|
2016-12-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Introduced a separate iterator for xrange objects, permitting their re-use. |
|
|
lib/__builtins__/span.py
|
|
368:22cf1ce6cfa7
|
2016-12-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Introduced a separate variable for assignment accessors, preventing conflicts
between assignment targets and assignment expressions. |
|
|
optimiser.py templates/ops.h translator.py
|
|
367:853edfa770e3
|
2016-12-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Reorganised slice and xrange so that slices do not act as ranges, permitting the
start and end of a slice to be None.
Support reverse sequences in the __getslice__ sequence method. |
|
|
lib/__builtins__/sequence.py lib/__builtins__/span.py tests/slice.py
|
|
366:6d63ae9b8b7a
|
2016-12-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Tidied up built-in type path and module computation, also handling stray None
constants produced by Sliceobj nodes. |
|
|
common.py generator.py inspector.py modules.py translator.py
|
|
365:719d23119818
|
2016-12-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Removed superfluous exceptions; added an attribute to AttributeError instances. |
|
|
lib/__builtins__/__init__.py lib/__builtins__/exception/__init__.py lib/__builtins__/exception/naming.py
|
|
364:32942668c75c
|
2016-12-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Handle TypeError, not AttributeError, when operations are not found on operands.
Added testing of operator methods in new classes. |
|
|
lib/operator/core.py tests/operator_support.py
|
|
363:0978d9f032c9
|
2016-12-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Removed superfluous type checks. |
|
|
lib/posix/io.py
|
|
362:5e5de08b522b
|
2016-12-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Use path-based constants and definitions for the minimum number of parameters.
Retain signature-based constants and definitions for the maximum number, since
this number is equivalent to the number of parameters recorded in each distinct
parameter table. |
|
|
generator.py
|
|