[Tutor] Closing a matplotlib window after show()

2010-02-07 Thread Wayne Watson
The code below is a typical example of matplotlib use. I've used it both in xp and win7 in IDLE. It produces the required plos and stop with the plot display. If I close the plot window with the x in the upper right corner, the shell window is left open. I have to do the same to close it. If I

Re: [Tutor] Subprocess Stdout Redirection

2010-02-07 Thread Gil Johnson
Muhammad, I am no expert, but I think you have to call proc_log.close() in your StartProc() to make sure that the file is written out to disk. If I understand what you are doing, you are trying to generate a new path for each pass through the loop, of the form 0/, 1/,... and write "MyLog.txt" to th

Re: [Tutor] SYS Long File Names?

2010-02-07 Thread Dave Angel
FT wrote: Hi! I was looking at the sys.argv(1) file name and it is the short 8 char name. How do you place it into the long file name format? I was reading music files and comparing the name to the directory listing and always comes back as not found because the name was shortened. So,

Re: [Tutor] why inline-only string literals?

2010-02-07 Thread Alan Gauld
"Steve Willoughby" wrote So, I wonder why most languages do not allow that from scratch; and some, like python, need a special syntax for multi-line strings. to handle the case. What happens too often, though, is that people forget a quote somewhere, so the compiler interprets that, plus a

Re: [Tutor] language aid (various)

2010-02-07 Thread Owain Clarke
Thanks to all. I will now try to absorb suggestions and follow up links - and no doubt get back to you with my next problem! Owain ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/li

Re: [Tutor] why inline-only string literals?

2010-02-07 Thread Steve Willoughby
> So, I wonder why most languages do not allow that from scratch; > and some, like python, need a special syntax for multi-line strings. > This is no parsing issue: instead, the pattern is simpler for it > does need to refuse newlines! I believe it's a deliberate design decision, not lack of abili

Re: [Tutor] how to graph percentile -- matplotlib, Inkscape, or what?

2010-02-07 Thread David
Yes, you are right, I initially certainly didn't think of it as a function. Right now I am wondering if it would not be more straight forward to take for the 'axis' a bitmap background and place the needle (another bitmap) at the right position of the background. Come to think of it, PyX might

Re: [Tutor] Uninstalling MatPlotLib? (Win7)--Package Install Order

2010-02-07 Thread Wayne Watson
Solved. One does not need to install numpy before MPL. However, I thought that some modules did have to be installed in a particular order. On 2/7/2010 3:20 AM, Wayne Watson wrote: On 2/7/2010 2:43 AM, Wayne Watson wrote: First, the end of the large log showed: 200 File Copy

Re: [Tutor] SYS Long File Names?

2010-02-07 Thread Tim Golden
On 06/02/2010 21:36, FT wrote: I was looking at the sys.argv(1) file name and it is the short 8 char name. How do you place it into the long file name format? I was reading music files and comparing the name to the directory listing and always comes back as not found because the name was sho

Re: [Tutor] Variable: From input and output

2010-02-07 Thread spir
On Fri, 5 Feb 2010 14:14:49 -0800 (PST) ssiverling wrote: > > Greetings, > > Thanks, and I will try and not to toppost. You just did it right now ;-) Also, a good practice is to cut out irrelevant parts of previous massage(s) in thread. Both work together to make threads fast/easy/pleasant t

[Tutor] SYS Long File Names?

2010-02-07 Thread FT
Hi! I was looking at the sys.argv(1) file name and it is the short 8 char name. How do you place it into the long file name format? I was reading music files and comparing the name to the directory listing and always comes back as not found because the name was shortened. So, how do you

Re: [Tutor] Variable: From input and output

2010-02-07 Thread ssiverling
Greetings, Thanks, and I will try and not to toppost. I've joined the mailing list also. sincerely, steve Rohit Roger$ wrote: > > Answer: > Here is the code : > firstname = raw_input("\n Enter your first name : ") lastname = raw_input("\n Enter your last name : ") print ("

[Tutor] why inline-only string literals?

2010-02-07 Thread spir
Hello, I recently wrote a parser for a (game scripting) language in which ordinary strings inside quotes can hold (literal) newlines: s = "Hello, how do you do?" So, I wonder why most languages do not allow that from scratch; and some, like python, need a special syntax for multi-line strings.

Re: [Tutor] Uninstalling MatPlotLib? (Win7)

2010-02-07 Thread Wayne Watson
On 2/7/2010 2:43 AM, Wayne Watson wrote: First, the end of the large log showed: 200 File Copy: C:\Python25\Lib\site-packages\dateutil\easter.pyo 200 File Copy: C:\Python25\Lib\site-packages\pylab.pyo 200 File Copy: C:\Python25\Lib\site-packages\configobj.pyo Second, and more importantly

Re: [Tutor] Uninstalling MatPlotLib? (Win7)

2010-02-07 Thread Wayne Watson
First, the end of the large log showed: 200 File Copy: C:\Python25\Lib\site-packages\dateutil\easter.pyo 200 File Copy: C:\Python25\Lib\site-packages\pylab.pyo 200 File Copy: C:\Python25\Lib\site-packages\configobj.pyo Second, and more importantly, the folder showed:    removematplotlab.exe, wh