Re: Newby Python Programming Question

2012-05-15 Thread Jean-Michel Pichavant
Coyote wrote: CM writes: I don't know Spyder IDE, but I don't think this should happen; could there just be a simple mistake? Because you first refer to the .py file as 'file_utils.py' but then you refer to the file as 'pwd.py'...which is also the name of your function. Room for confusion..

Re: Newby Python Programming Question

2012-05-14 Thread Simon Cropper
On 15/05/12 12:18, Chris Angelico wrote: On Sat, May 12, 2012 at 8:25 AM, Coyote wrote: I've been playing around with a couple of IDEs because I liked the one I used with IDL and I wanted to use something similar for Python. The IDLDE was an Eclipse variant, but I've tried installing Eclipse

Re: Newby Python Programming Question

2012-05-14 Thread Chris Angelico
On Sat, May 12, 2012 at 8:25 AM, Coyote wrote: > I've been playing around with a couple of IDEs because I liked the one I used > with IDL and I wanted to use something similar for Python. The IDLDE was an > Eclipse variant, but I've tried installing Eclipse before for something else > and I'm p

Re: Newby Python Programming Question

2012-05-14 Thread Coyote
CM writes: > I don't know Spyder IDE, but I don't think this should happen; could > there just be a simple mistake? Because you first refer to the .py > file as 'file_utils.py' but then you refer to the file as > 'pwd.py'...which is also the name of your function. Room for > confusion...so could

Re: Newby Python Programming Question

2012-05-14 Thread CM
On May 11, 11:25 am, Coyote wrote: > Folks, > > I am migrating to Python after a 20+ year career writing IDL programs > exclusively. I have a really simple question that I can't find the answer to > in any of the books and tutorials I have been reading to get up to speed. > > I have two programs

Re: Newby Python Programming Question

2012-05-14 Thread Coyote
Maarten writes: > I do recommend you read http://docs.python.org/howto/doanddont.html as a > starting point to avoid learning some bad habits, especially on importing. > You probably already found > https://www.cfa.harvard.edu/~jbattat/computer/python/science/idl-numpy.html Yikes! I'm sure tha

Re: Newby Python Programming Question

2012-05-14 Thread Maarten
On Friday, May 11, 2012 5:25:20 PM UTC+2, Coyote wrote: > I am migrating to Python after a 20+ year career writing IDL programs > exclusively. I have a really simple question that I can't find the answer to > in any of the books and tutorials I have been reading to get up to speed. Welcome here

Newby Python Programming Question

2012-05-14 Thread Coyote
Folks, I am migrating to Python after a 20+ year career writing IDL programs exclusively. I have a really simple question that I can't find the answer to in any of the books and tutorials I have been reading to get up to speed. I have two programs. The first is in a file I named file_utils.py: