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
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
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
thanks!
--
http://mail.python.org/mailman/listinfo/python-list
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
OK, thanks!
--
http://mail.python.org/mailman/listinfo/python-list
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:
>>>
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