Re: [Tutor] Closing a matplotlib window after show()

2010-02-08 Thread Wayne Watson
Hi, I'm not so sure that's true. I have a large 900 line program where some original plot code just continues beyond plot() and show(), after the user closes the plot window. New code that I put in gets knotted up, as far as I can tell. In both cases, I've put print statements after show(), but

Re: [Tutor] python

2010-02-08 Thread Luke Paireepinart
quite. On Mon, Feb 8, 2010 at 8:54 PM, ailx ailx wrote: > python > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > >

[Tutor] python

2010-02-08 Thread ailx ailx
python ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] List Comprehension question

2010-02-08 Thread Luke Paireepinart
On Mon, Feb 8, 2010 at 4:15 PM, wrote: > I've been trying to work my way through some 'beginner projects' I found > around the web, one of them involves generating some random numbers. I > decided to use a list of lists, and I'm wondering if this is a valid > comprehension...IDLE doesn't seem to

Re: [Tutor] Closing a matplotlib window after show()

2010-02-08 Thread Eike Welk
Hello Wayne! On Monday February 8 2010 20:54:27 Wayne Watson wrote: > The basic problem is the show(). One person checked out the examples I > provided and found show() to operate fine. On my XP machine the program > I'm modifying has plot code someone put in a year or two ago, and it all > works

[Tutor] List Comprehension question

2010-02-08 Thread internets
I've been trying to work my way through some 'beginner projects' I found around the web, one of them involves generating some random numbers. I decided to use a list of lists, and I'm wondering if this is a valid comprehension...IDLE doesn't seem to mind, but maybe I lack the experience to know be

Re: [Tutor] datetime a.m. not AM

2010-02-08 Thread bevan j
Well, I have managed to get it working by using the locale setting. It would be nice to use the am/pm setting only and leave the rest unset. Will have to look into it further. Any tips? import locale #to set locale to use a.m. instead of AM locale.setlocale(locale.LC_ALL, '') bevan j wrote:

Re: [Tutor] datetime a.m. not AM

2010-02-08 Thread Sander Sweers
On ma, 2010-02-08 at 13:02 -0800, bevan j wrote: > data = '1/09/1978 1:00:00 a.m.' If you know this will always be in the form of 'a.m.' you can replace it with 'am' by data.replace('a.m.','am'). Greets Sander ___ Tutor maillist - Tutor@python.org T

[Tutor] datetime a.m. not AM

2010-02-08 Thread bevan j
Hello, I have an issue with data that I am trying to convert to datetime. It has 'a.m.' rather than 'am' and the %p format doesn't seem to work. I am pretty sure there should be an easy solution. That said I can not see it at the moment. the following illustrates the issue. test1 and test2 w

Re: [Tutor] Closing a matplotlib window after show()

2010-02-08 Thread Wayne Watson
When I installed matplotlib2.5 on my W7 machine last were a few error msgs about missing about missing files. Is that usual for matplotlib. BTW, I've posted details of my problem to the MPL list. Here I'm interested in the basic of install and use with IDLE, and not the details of the use of MP

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

2010-02-08 Thread spir
[sorry, Steve, first replied to sender instead of list] On Sun, 7 Feb 2010 09:54:12 -0800 Steve Willoughby wrote: > I believe it's a deliberate design decision, [...] > So by making you explicitly state when you wanted multi-line strings, > it makes it easier to spot this common mistake as well