[issue1168055] Add current dir when running try_run test program

2008-09-23 Thread Steve Lianoglou
Steve Lianoglou [EMAIL PROTECTED] added the comment: Sorry to bring up an old issue, but I just got bit by this when trying to install a python package. The `config` command was used to ensure that a certain function was included in the math.h on my cpu before compiling the resulting c binary

Re: Getting up and running with Python on a Mac

2008-05-29 Thread Steve Lianoglou
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

Re: Python for web...

2007-12-27 Thread Steve Lianoglou
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

Re: Programming Idiomatic Code

2007-07-02 Thread Steve Lianoglou
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

Re: Pre-defining an action to take when an expected error occurs

2006-09-14 Thread Steve Lianoglou
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 the

Re: matplotlib

2006-09-14 Thread Steve Lianoglou
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:

Re: Question about using python as a scripting language

2006-08-06 Thread Steve Lianoglou
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 methods.

Re: Question about using python as a scripting language

2006-08-06 Thread Steve Lianoglou
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 --