[pybot-commits] CVS: pybot/pybot/modules eval.py,1.11,1.12
Brought to you by:
niemeyer
From: Gustavo N. <nie...@us...> - 2003-09-12 02:24:14
|
Update of /cvsroot/pybot/pybot/pybot/modules In directory sc8-pr-cvs1:/tmp/cvs-serv30330/pybot/modules Modified Files: eval.py Log Message: * modules/eval.py: Added random functions to eval. Index: eval.py =================================================================== RCS file: /cvsroot/pybot/pybot/pybot/modules/eval.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** eval.py 29 Aug 2003 17:14:30 -0000 1.11 --- eval.py 12 Sep 2003 02:24:03 -0000 1.12 *************** *** 22,25 **** --- 22,26 ---- import time import math + import random import os from types import StringType *************** *** 60,63 **** --- 61,65 ---- self.dict["abs"] = abs self.dict["bool"] = bool + self.dict["choice"] = random.choice self.dict["chr"] = chr self.dict["cmp"] = cmp *************** *** 81,88 **** --- 83,94 ---- self.dict["ord"] = ord self.dict["pow"] = pow + self.dict["randint"] = random.randint + self.dict["random"] = random.random + self.dict["randrange"] = random.randrange self.dict["range"] = range self.dict["reduce"] = reduce self.dict["repr"] = repr self.dict["round"] = round + self.dict["shuffle"] = random.shuffle self.dict["str"] = str self.dict["tuple"] = tuple |