Re: [Tutor] Notepad++ question

2012-06-07 Thread Michael M Mason
Marc Tompkins wrote on 07 June 2012 at 08:53:- > In Notepad++, select Settings/Preferences.  > There's a tab called "Language Menu/Tab Settings" (they've put the two things > on > one tab to save space; the tab settings are on the right side.)  You'll find a > setting for "Tab size"; the default

Re: [Tutor] Weird Try..Except Error

2011-11-28 Thread Michael M Mason
Alan Gauld wrote on 25 November 2011 at 21:11:- > This is one of the annoying ambiguities of Windows. > The way it finds the executable for executables(exe, bat cmd etc) is > different to how it finds the executable for associations. > > In the former case it uses PATH, in the latter it relies on

Re: [Tutor] Okay, this time I tried doing a little research but no luck in solving this one.

2011-11-11 Thread Michael M Mason
On 11 November 2011 at 02:00 Nathaniel Trujillo wrote:- > Okay, I typed in python -c "import sys; print sys.version" at the command > prompt. I didn't see a prompt ending with %. Instead I saw a prompt ending > with >. But here is the message I got. > > Microsoft Windows [Version 6.1.7600] > Copyr

Re: [Tutor] Is the Python 3.2.1 documentation available as a .chm file?

2011-07-21 Thread Michael M Mason
Richard D. Moores wrote on 20 July 2011 at 18:11 > On Wed, Jul 20, 2011 at 09:04, xDog Walker wrote: > > On Wednesday 2011 July 20 06:41, Richard D. Moores wrote: > > > Is the Python 3.2.1 documentation available as a .chm file from > > > Python.org? > > > > http://www.python.org/ftp/python/3.2.1

Re: [Tutor] broken script - curiouser and curiouser

2011-07-07 Thread Michael M Mason
On 07 July 2011 at 15:07 Lisi wrote: > In error, I downloaded ex26 before I had done ex25. So I left > it and did ex25. > > Having finally given up on ex25, I am now doing ex26. And guess > what?! Line 10 has a missing colon. > > So _how_ did a missing colon in ex26 cause problems in ex25

Re: [Tutor] broken script - curiouser and curiouser

2011-07-07 Thread Michael M Mason
Michael M Mason wrote on 07 July 2011 at 15:38:- > > In error, I downloaded ex26 before I had done ex25. So I left > > it and did ex25. > > > > Having finally given up on ex25, I am now doing ex26. And guess > > what?! Line 10 has a missing colon. > > >

Re: [Tutor] nested loops

2011-02-07 Thread Michael M Mason
Alan Gauld wrote:- > "Wayne Werner" wrote > found = False > > highscore = 0 > > alignment = somealignment > > for x in something and not found: > > for y in somethingelse and not found: > > for z in evenmoresomething: > > if x+y+z > highscore: > > hi

Re: [Tutor] I don't understand this code

2010-07-14 Thread Michael M Mason
> The thing is, the "passed list of strings" is called "words", > not "wordList", so I see it shouldn't work. > > On the other hand, the variable "wordList" is defined nowhere! "wordList" is just a name that the function (getRandomWord) uses to refer to whatever values get passed to it. Remember t

Re: [Tutor] Cannot open SQLite database

2010-02-25 Thread Michael M Mason
ALAN GAULD wrote on 25 February 2010 at 08:50:- > So I think that was a red herring, sorry. > It also looks like the Read Only check box in the main > Explorer property dialog tab doesn't mean what it says... Doesn't the Read Only checkbox have a coloured square rather than a tick? AFAIK the col

Re: [Tutor] "Sounding" Off, IDLE (Win7)

2010-02-17 Thread Michael M Mason
Wayne Watson wrote on 16 February 2010 at 17:58:- > In Win7 IDLE, when I type in something with a syntax > problem, a bell rings. How do I stop that? I've looked > at Control Panel Sounds, but don't see anything of > apparent use. I don't get this on my Win7 machine. But anyway, the sound is prob

Re: [Tutor] run command

2009-09-05 Thread Michael M Mason
"upasara wulung" wrote: (1) In a certain working folder, I produced simple python file, for an example, hello.py, which is free of error. (2) I called python from the same working folder using command 'python' (3) In the python shell, I executed: >>> run hello.py But I got only an error message

Re: [Tutor] packing a list of lists

2009-08-28 Thread Michael M Mason
Kevin Parks wrote: > def pack(in_seq): > out_list=[] > x = 1 > ll=[1, 1] > for each in in_seq: > ll[0] = x > ll[1] = each > out_list.append(ll) > #print ll > x = x + 1 > print out_list Variable out

Re: [Tutor] To write data in two different fonts?

2009-08-11 Thread Michael M Mason
Dave Angel wrote on 11 August 2009 at 16:42:- > The brute-force way might be to replace each space in "l" with >   which is a "nonbreaking space." But I think you want the > tag, which means the text is pre-formatted. And you could put that > around the whole sorce file, instead of doin