[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Python bots in Galcon (or your game!) safe_eval


Mind though - the reason I posted is because I have serious doubts as to the "security" of this module.  Even since the post I've found several bugs and things to change to make it better.  Hence the intro to safe.py:

This file is public domain and is not suited for any serious purpose.
This code is not guaranteed to work. Use at your own risk!
Beware!  Trust no one!

So try to break it!  Another thing - that would be helpful - would be a handful of scripts that are "safe" that this validator should approve.  Would be good as additional test cases. 


Patrick Mullen <saluk64007@xxxxxxxxx> wrote:
Sounds cool, and this is an important problem domain for python, even beyond gaming.  I've been needing this for similar reasons, and the hacks I've been using are pretty flimsy. 

re.sub(script,'import','_no_imports_') FTW

8:00? 8:25? 8:40? Find a flick in no time
with theYahoo! Search movie showtime shortcut.