From 9189ad5fab8bf78079d95769c1d02312fa232081 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 16 Aug 2014 23:19:25 +0800 Subject: [PATCH] language/core: update kernel ro types --- artiq/language/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/language/core.py b/artiq/language/core.py index da4924661..98b88e475 100644 --- a/artiq/language/core.py +++ b/artiq/language/core.py @@ -1,4 +1,5 @@ from collections import namedtuple +from fractions import Fraction from artiq.language import units @@ -34,7 +35,7 @@ def round64(x): return int64(round(x)) def _make_kernel_ro(value): - return isinstance(value, (int, float, str, units.Quantity)) + return isinstance(value, (bool, int, int64, float, Fraction, units.Quantity)) class AutoContext: parameters = ""