projects
/
python-bulletml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Evaluation optimizations.
[python-bulletml.git]
/
bulletml
/
expr.py
diff --git
a/bulletml/expr.py
b/bulletml/expr.py
index
9ca82ec
..
33f7d44
100644
(file)
--- 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):