Re: [Tutor] variabel from raw input into re.search?

2011-01-07 Thread Bill Felton
On Jan 7, 2011, at 7:47 AM, Tommy Kaas wrote: > I try to write a program, where the user can write a word or a name and I > will tell how many times the subject was mentioned in a text, I’m hosting. > I guess it’s possible but not this way it seems? > The re is only searching for the word “name”

Re: [Tutor] Changing Python icon - 2.6 and 3.2

2011-02-03 Thread Bill Felton
I haven't tried this on Windows 7 yet, but what I did on my Mac was to create shortcuts and rename those. I generally launch from shortcuts, so this leaves the app names alone but gives me the information I need to launch what I intend. You should be able to do something similar on Windows. r

Re: [Tutor] best practice: throw exception or set a flag?

2011-02-04 Thread Bill Felton
On Feb 4, 2011, at 8:03 AM, Alex Hall wrote: > On 2/4/11, Alan Gauld wrote: >> "Alex Hall" wrote >> >>> I am wondering what the best way to do the following would be: throw >>> an exception, or always return an object but set an error flag if >>> something goes wrong? Here is an example: >> >

Re: [Tutor] best practice: throw exception or set a flag?

2011-02-04 Thread Bill Felton
, at 9:28 AM, Emile van Sebille wrote: > On 2/4/2011 5:35 AM Bill Felton said... > >> Um, not quite correct -- methods *without a specified return value* always >> return self, that is, the object which executed the method. > > Um, no. They return None. > > >&g

Re: [Tutor] best practice: throw exception or set a flag?

2011-02-04 Thread Bill Felton
not a language level feature, it becomes a convention that one can only rely on in ones own code. regards, Bill On Feb 4, 2011, at 11:56 AM, Alex Hall wrote: > On 2/4/11, Bill Felton wrote: >> Um, yes, emphatically yes. You missed the context, which was Smalltalk, and >> it is te