[Tutor] looking for some general advice

Kent Johnson kent37 at tds.net
Mon Jun 11 02:16:43 CEST 2007

Alan Gauld wrote:
> "Michael Klier" <chi at chimeric.de> wrote 
> I'm not surecwhy but your messages are coming through to me 
> as text attachments which makes quoting them tricky...
>> Also, what would be the right exception to raise if not 
>> enough arguments were passed to a programm?
> I don't think there is a right answer, you can decide 
> for yourself, buty in general I try using the >>> prompt 
> with a deliberate error to see what Python does

I look at the docs for built-in exceptions to see which might apply:

> I think a simple usage message and 
> exit with non zero is fine.

I agree with that...


More information about the Tutor mailing list