1.1 --- a/generator.py Tue Mar 07 00:28:18 2017 +0100
1.2 +++ b/generator.py Tue Mar 07 17:20:27 2017 +0100
1.3 @@ -497,6 +497,8 @@
1.4 try:
1.5 if debug:
1.6 print >>f_options, "CFLAGS = -g"
1.7 + else:
1.8 + print >>f_options, "CFLAGS = -O2"
1.9
1.10 if gc_sections:
1.11 print >>f_options, "include gc_sections.mk"
2.1 --- a/lib/__builtins__/buffer.py Tue Mar 07 00:28:18 2017 +0100
2.2 +++ b/lib/__builtins__/buffer.py Tue Mar 07 17:20:27 2017 +0100
2.3 @@ -3,7 +3,7 @@
2.4 """
2.5 Buffer object.
2.6
2.7 -Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
2.8 +Copyright (C) 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
2.9
2.10 This program is free software; you can redistribute it and/or modify it under
2.11 the terms of the GNU General Public License as published by the Free Software
2.12 @@ -34,7 +34,7 @@
2.13 elif isinstance(size, int):
2.14 n = size
2.15 else:
2.16 - raise TypeError(size)
2.17 + raise ValueError(size)
2.18
2.19 self.__data__ = list_init(n)
2.20
3.1 --- a/lib/__builtins__/tuple.py Tue Mar 07 00:28:18 2017 +0100
3.2 +++ b/lib/__builtins__/tuple.py Tue Mar 07 17:20:27 2017 +0100
3.3 @@ -3,7 +3,7 @@
3.4 """
3.5 Tuple objects.
3.6
3.7 -Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
3.8 +Copyright (C) 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
3.9
3.10 This program is free software; you can redistribute it and/or modify it under
3.11 the terms of the GNU General Public License as published by the Free Software
3.12 @@ -103,6 +103,6 @@
3.13
3.14 "Set at the normalised (positive) 'index' the given 'value'."
3.15
3.16 - raise TypeError(self)
3.17 + raise TypeError
3.18
3.19 # vim: tabstop=4 expandtab shiftwidth=4
4.1 --- a/templates/Makefile Tue Mar 07 00:28:18 2017 +0100
4.2 +++ b/templates/Makefile Tue Mar 07 17:20:27 2017 +0100
4.3 @@ -4,7 +4,7 @@
4.4
4.5 SRC += calls.c exceptions.c main.c ops.c progops.c progtypes.c
4.6 OBJ = $(SRC:.c=.o)
4.7 -CFLAGS += -Wall -I. -finput-charset=UTF-8 -O2
4.8 +CFLAGS += -Wall -I. -finput-charset=UTF-8
4.9 LDFLAGS += -lm -lgc
4.10
4.11 ifdef ARCH
5.1 --- a/translator.py Tue Mar 07 00:28:18 2017 +0100
5.2 +++ b/translator.py Tue Mar 07 17:20:27 2017 +0100
5.3 @@ -1112,7 +1112,7 @@
5.4 # Complete the array with null values, permitting tests for a complete
5.5 # set of arguments.
5.6
5.7 - args += [None] * (not parameters and len(n.args) or parameters and len(parameters) or 0)
5.8 + args += [None] * (parameters is None and len(n.args) or parameters is not None and len(parameters) or 0)
5.9 kwcodes = []
5.10 kwargs = []
5.11