diff --git a/src/misceval.js b/src/misceval.js index 4028ab2be7..b9d3710d34 100644 --- a/src/misceval.js +++ b/src/misceval.js @@ -384,7 +384,7 @@ Sk.misceval.objectRepr = function(v) else if (v.v === -Infinity) return new Sk.builtin.str('-inf'); else - return new Sk.builtin.str("" + v.v); + return v['$r'](); } else return v['$r'](); diff --git a/test/run/t513.py b/test/run/t513.py new file mode 100644 index 0000000000..efdafae684 --- /dev/null +++ b/test/run/t513.py @@ -0,0 +1,3 @@ + +x = [1.0, 2.0] +print x diff --git a/test/run/t513.py.real b/test/run/t513.py.real new file mode 100644 index 0000000000..67922a565c --- /dev/null +++ b/test/run/t513.py.real @@ -0,0 +1 @@ +[1.0, 2.0]