X-Git-Url: https://git.yukkurigames.com/?p=python-bulletml.git;a=blobdiff_plain;f=bulletml%2Fexpr.py;fp=bulletml%2Fexpr.py;h=33f7d44bf1af0ba57be9955ec30b461a8c6064c3;hp=9ca82ec128a98a369df1855f52aec7a86aefd47d;hb=9b5018cadee8ae1f5599b20095f47e4fa8b0bcc0;hpb=006fb3dcabc9600997f5c3c8fcc5e80baa7fc1e0 diff --git a/bulletml/expr.py b/bulletml/expr.py index 9ca82ec..33f7d44 100644 --- a/bulletml/expr.py +++ b/bulletml/expr.py @@ -57,7 +57,7 @@ class NumberDef(object): if self.__value is not None: return self.__value rand = random.random() - variables = dict(rand=rand, rank=rank, params=params) + variables = { 'rand': rand, 'rank': rank, 'params': params } return eval(self.__expr, variables) def __repr__(self):