newbie question

2006-03-01 Thread orangeDinosaur
Hi, I'm brand new to using/playing with Python, and I have what is likely a very simple question but can't seem to figure it out. I wrote up a script in my preferred text editor. It contains maybe ten lines of code. I want to be able to execute those code lines with a single command either from

Re: newbie question

2006-03-02 Thread orangeDinosaur
Thanks!! This makes sense. And you were right about my misunderstanding. Michael Tobis wrote: > I think the answers so far are unnecessarily confusing and off the > mark. > > Here is what I think you think you want to know: > > 1) import only works once. If you try import again, it will see the

string stripping issues

2006-03-02 Thread orangeDinosaur
Hello, I am encountering a behavior I can think of reason for. Sometimes, when I use the .strip module for strings, it takes away more than what I've specified. For example: >>> a = 'Hughes. John\r\n' >>> a.strip('') returns: 'ughes. John\r\n' However, if I take another string, for

Re: string stripping issues

2006-03-02 Thread orangeDinosaur
thanks! -- http://mail.python.org/mailman/listinfo/python-list

what am I missing (syntax error)

2006-03-05 Thread orangeDinosaur
Here's a section of code: for x in occupants: if x not in uniqueUsers and not in staff: uniqueUsers.append(x) elif x in staff and not in uniqueStaff: uniqueStaff.append(x) When I try to import the module with the function definition that contains

Re: what am I missing (syntax error)

2006-03-05 Thread orangeDinosaur
OK, thanks! -- http://mail.python.org/mailman/listinfo/python-list

matplotlib basic question

2007-04-19 Thread orangeDinosaur
Hi, I am exploring the possibility of using python as a replacement of MATLAB when I leave school. So, I've been playing with matplotlib and have run into some weird behavior after recently installing python 2.5.1 and matplotlib 0.90 on my Windows XP machine. Here's an example of what I see: >>>

Re: matplotlib basic question

2007-04-20 Thread orangeDinosaur
t;[EMAIL PROTECTED]> wrote: > orangeDinosaur <[EMAIL PROTECTED]> writes: > > > [...] But now, the figure window is completely unresponsive -- I > > can't even close it without getting the "your program is not > > repsonding" business. What am I miss