Author: oracle
Date: Thu Jul 24 16:25:13 2008
New Revision: 28173
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28173&view=rev
Log:
Added support for 'reversed' builtin to safe.py.
Modified:
trunk/changelog
trunk/data/ais/safe.py
Modified: trunk/changelog
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=28173&r1=28172&r2=28173&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Thu Jul 24 16:25:13 2008
@@ -15,6 +15,9 @@
* It is now possible to use [time_area] to add or remove new local ToD
areas and their schedules during scenario events. Removal requires to
associate an id. to [time_area]s, or it won't work.
+ * Python AI
+ * reversed builtin is now allowed. This allows for random.shuffle to be
+ called.
Version 1.5.2:
* campaigns:
Modified: trunk/data/ais/safe.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/ais/safe.py?rev=28173&r1=28172&r2=28173&view=diff
==============================================================================
--- trunk/data/ais/safe.py (original)
+++ trunk/data/ais/safe.py Thu Jul 24 16:25:13 2008
@@ -85,7 +85,7 @@
'abs', 'bool', 'callable', 'chr', 'cmp', 'complex', 'dict', 'divmod',
'filter',
'float', 'frozenset', 'hash', 'hex', 'int', 'isinstance', 'issubclass',
'len',
'list', 'long', 'map', 'max', 'min', 'object', 'oct', 'ord', 'pow',
'range',
- 'repr', 'round', 'set', 'slice', 'str', 'sum', 'super', 'tuple',
'xrange', 'zip',
+ 'repr', 'reversed', 'round', 'set', 'slice', 'str', 'sum', 'super',
'tuple', 'xrange', 'zip',
'ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException',
'Exception',
'IndexError', 'KeyError', 'NameError', 'RuntimeError', 'RuntimeWarning',
'StopIteration',
'ValueError', 'ZeroDivisionError'
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits