Some people will argue with the use of exceptions for handling game logic. But it is about programming style and not because it will make debugging difficult.
With try/except you specify witch exception you are interested and all others will produce the informative error message.
Actually Python supports restricted execution. This browser Grail is writen in Python and supports Python applets that run securely with rexec.
As for the Python used in games matter I suggest my article about it. The use of Python in games is discussed along with some things that are only possible with Python.
With try/except you specify witch exception you are interested and all others will produce the informative error message.
Actually Python supports restricted execution. This browser Grail is writen in Python and supports Python applets that run securely with rexec. As for the Python used in games matter I suggest my article about it. The use of Python in games is discussed along with some things that are only possible with Python.