404:25e43e32ab7e
|
2016-12-14 |
Paul Boddie |
changeset
files
shortlog
graph
|
Encode uninitialised members as None references. |
|
|
generator.py
|
|
403:97f87e030e28
|
2016-12-14 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added a UTF-8 character counting native function to support the __len__ method
on Unicode objects, introducing a bytelength method on strings so that
byte-level operations, such as conversion between encodings, can still work
with Unicode objects (since __len__ returning characters would be inappropriate
for such purposes). |
|
|
lib/__builtins__/str.py lib/__builtins__/unicode.py lib/native/__init__.py lib/native/unicode.py lib/posix/iconv.py templates/native/unicode.c templates/native/unicode.h tests/unicode.py
|
|
402:10fffa3651d9
|
2016-12-14 |
Paul Boddie |
changeset
files
shortlog
graph
|
Made use of __len__ methods instead of the len built-in function. |
|
|
lib/__builtins__/sequence.py
|
|
401:18c564471d4a
|
2016-12-13 |
Paul Boddie |
changeset
files
shortlog
graph
|
Support encoding to streams using the original encoding of Unicode objects if
no stream encoding is set. |
|
|
lib/__builtins__/file.py
|
|
400:9e1d8b186e5c
|
2016-12-13 |
Paul Boddie |
changeset
files
shortlog
graph
|
Initialise the encoding of Unicode constants to None, also introducing generic
support for initialising None members. |
|
|
generator.py
|
|
399:e545439a787c
|
2016-12-13 |
Paul Boddie |
changeset
files
shortlog
graph
|
Eliminate predefined constant name assignments. |
|
|
translator.py
|
|
398:87ba8cc41082
|
2016-12-13 |
Paul Boddie |
changeset
files
shortlog
graph
|
Make sure that Unicode objects result from text-only concatenation. |
|
|
lib/__builtins__/unicode.py tests/unicode.py
|
|
397:0be168e888a9
|
2016-12-13 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added type information to constant records so that Unicode constants can be
distinguished from plain string constants and thus be generated correctly. |
|
|
common.py generator.py modules.py optimiser.py translator.py
|
|
396:3130610deb67
|
2016-12-13 |
Paul Boddie |
changeset
files
shortlog
graph
|
Fixed "reversed operands" string addition, imposing constraints on the operands
so that only byte strings can be combined with each other.
Added Unicode binary operator support in order to combine Unicode objects with
each other and with byte strings.
Added an original encoding attribute to Unicode objects.
Tested addition of the different kinds of strings. |
|
|
lib/__builtins__/str.py lib/__builtins__/unicode.py tests/unicode.py
|
|
395:535f437d592e
|
2016-12-13 |
Paul Boddie |
changeset
files
shortlog
graph
|
Propagate the actual text for constant literals from the program code. |
|
|
common.py compiler/ast.py compiler/transformer.py
|
|