Hi,
> I was wondering how I can read
> commands from the XML file and then execute them in the game.
...
> I just need some way of
> being able to read from the file what function the program needs to
> call next. Any help is appreciated.
One thing you could do is use the eval or compile meth
Delaney, Timothy (Tim) wrote:
> This is just asking for trouble.
>
> my_list = eval('import shutil; shutil.rmtree('/')')
Hah .. wow.
And in related news: you still shouldn't be taking candy from
strangers.
Point well taken. Thanks for flagging that one.
-steve
--
http://mail.python.org/mailma
> if the Excel sheet has 10 rows with data in them, the
> statement "range(sh.nrows)" should build the list of numbers [0,
> 1,...9]. It should, but it doesn't do that. What it does is buld a list
> from [0, 1...20] or more or a little less, but the point is that it
> always grabs empy rows after t
> This site and webpage in particular doesn't open. I tried that too
> before posting my question.
The page (http://matplotlib.sourceforge.net/tutorial.html) may not be
up now, but will most certainly be etched in Google's mind for some
time to come, via Google Cache:
http://64.233.161.104/searc
I don't know about idiomatic, but here's a quick list of somethings
I'd change.
1) In general, I don't think it's a good idea for a called function to
blow out the system on error. So, in this example, I wouldn't have
raised errors be caught in the same function only to call os.exit. I'd
either de
It's also worthwhile to note that the apress django book listed is
also accessible free online here:
http://www.djangobook.com/en/1.0/
-steve
--
http://mail.python.org/mailman/listinfo/python-list
> I want to do a fair bit of scientific /
> numerical computing, so it would seem that SAGE ot the Enthought
> Python distribution would seem to be the most relevant - I'd
> appreciate your guidance on getting Python to run on a Mac with a
> particular focus on these two distributions.
As already