Re: [Tutor] editors

2006-08-18 Thread Matthew Webber
I use Eclipse (www.eclipse.org) with the pydev plugin (pydev.sourceforge.net). Eclipse is written in Java (you need the JVM to run it, and a decent amount of memory) and was originally intended for Java development (that's what most of the docs reflect). It now has plugins available for other langu

Re: [Tutor] Python Programming Books

2006-07-14 Thread Matthew Webber
It depends a lot on what your prior programming experience in other languages is. I have a large amount of prior programming experience, and I found "Learning Python" very good. The "Python Cookbook" (Martelli et. al., also O'Reilly) is very useful for learning the idioms. -Original Message

Re: [Tutor] WinXP IDLE -> open file : how-to change default directory ?

2006-06-16 Thread Matthew Webber
Try right-clicking on the shortcut, select properties, and change the "start in" value. Matthew P.S. When posting to the list, please use plain text format. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of learner404 Sent: 15 June 20

Re: [Tutor] (OT) Monitorising WEB POSTs

2006-06-07 Thread Matthew Webber
Install the Firefox extension called "Live HTTP headers", and look at the "Generator" tab. This appears to be what you want. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Jessop Sent: 07 June 2006 11:00 To: tutor@python.org Subject: [Tutor] (OT) M

Re: [Tutor] doubt plz help

2006-06-06 Thread Matthew Webber
>> Try to rephrase that question. I don't think I was the only one not understanding what you are asking? Try to rephrase that response. I'm sure that you understand the double negative in the second sentence, but many who speak English as a second language (including, possibly, the original poste

Re: [Tutor] Summing part of a list

2006-05-09 Thread Matthew Webber
Thanks Kent, I liked the generator solution (I knew there had to be something like that). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kent Johnson Sent: 09 May 2006 17:54 Cc: tutor@python.org Subject: Re: [Tutor] Summing part of a list << snip >> Hm

Re: [Tutor] Summing part of a list

2006-05-09 Thread Matthew Webber
2 passes of the original list). Surely there is a neater way. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Webber Sent: 09 May 2006 17:22 To: tutor@python.org Subject: [Tutor] Summing part of a list I have a list that looks a bit like this -

[Tutor] Summing part of a list

2006-05-09 Thread Matthew Webber
I have a list that looks a bit like this - [(u'gbr', 30505), (u'fra', 476), (u'ita', 364), (u'ger', 299), (u'fin', 6), (u'ven', 6), (u'chi', 3), (u'hun', 3), (u'mar', 3), (u'lux', 2), (u'smo', 2), (u'tch', 2), (u'aho', 1), (u'ber', 1)] The list items are tuples, the first item of which is a coun

[Tutor] Halting execution

2006-05-03 Thread Matthew Webber
This has got to be trivial, but I can't find the answer ... I want to stop execution of my main script half way through. This is just for debugging - the code in the bottom half of the script generates a whole lot of output that I don't want. Inserting "break" or "return" doesn't work, but somethin

Re: [Tutor] Iterate over letters in a word

2006-03-14 Thread Matthew Webber
As a side note, remember that that xor-ing a key with a message is trivial to break (it's just a variation on the Vigenere cipher first published in 1568). So don't use if for any real applications. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Nel

Re: [Tutor] Sqrt is listed as always available.

2006-02-15 Thread Matthew Webber
This works for me under Python 2.4 - import math math.sqrt(4) When you state "Sqrt is listed as always available", where does it say that? For future problem reports, let us know which Python release you are running. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [Tutor] python help

2006-02-08 Thread Matthew Webber
These sound like homework questions, in which case it would not be right for us to just give you the answer (and it would not be right for you to ask for it). If you can show us what you have tried so far, maybe we can give you some hints ... From: [EMAIL

Re: [Tutor] Threading + socket server (blocking IO)

2006-02-06 Thread Matthew Webber
>> The GIL prevents Python from effectively running multiple threads on multiple processors. This statement is slightly misleading. You can run multiple threads on a multi-processor system quite effectively, the limitation of the GIL is simply that you can typically utilize only one processor at