[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Python bots in Galcon (or your game!) safe_eval
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Python bots in Galcon (or your game!) safe_eval
- From: "Patrick Mullen" <saluk64007@xxxxxxxxx>
- Date: Wed, 7 Mar 2007 23:18:26 -0800
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 08 Mar 2007 02:18:37 -0500
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=TzYy+NlWzWSIGo33shWjg2Um+/LDFFC+ulbJgdfK/byl1mqeBp1a03h5ZfbbLpvwvGpt6Juo7I6lmBwOowMyQe0SJl/XfD9N2Z3cQe426ILskt8gN1MMED5AcQFVz57cYxxcjUh5m+bq6P3OxRYO1kKtLtOIFt+IOfiHX39iGVk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rHCX36jhtICO/JeQ2wnFxRxVZ4cNew1FzCwYBABqFkj9CzSm9NDatIaor7grQPwhn/gdgXPZ9CDUTvcyoNWLPwPbcUcK3NSCyBVB7BNWqS7Yy4cF2JEDtr9B0fxoo8U5KN3DpORnhvldHMmrIojp9QNrCqpX90aN+E4mWVirH+Y=
- In-reply-to: <1173329487.45ef964f4f706@webmail.webprophets.net.au>
- References: <231084.34650.qm@web30303.mail.mud.yahoo.com> <1173329487.45ef964f4f706@webmail.webprophets.net.au>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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