From 7d414a1b52d193bab2c94cf56932e1eba23ba542 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 8 Feb 2015 01:57:40 +0000 Subject: py: Parse big-int/float/imag constants directly in parser. Previous to this patch, a big-int, float or imag constant was interned (made into a qstr) and then parsed at runtime to create an object each time it was needed. This is wasteful in RAM and not efficient. Now, these constants are parsed straight away in the parser and turned into objects. This allows constants with large numbers of digits (so addresses issue #1103) and takes us a step closer to #722. --- tests/float/cmath_fun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/float/cmath_fun.py') diff --git a/tests/float/cmath_fun.py b/tests/float/cmath_fun.py index e13271372..dfb6c56bd 100644 --- a/tests/float/cmath_fun.py +++ b/tests/float/cmath_fun.py @@ -12,7 +12,7 @@ print("%.5g" % e) print("%.5g" % pi) test_values_non_zero = [] -base_values = (0.0, 0.5, 1.23456, 10.) +base_values = (0.0, 0.5, 1.2345, 10.) for r in base_values: for i in base_values: if r != 0. or i != 0.: -- cgit v1.2.3