Alan Gauld wrote: > I'm not surecwhy but your messages are coming through to me > as text attachments which makes quoting them tricky...
Hmmm, I did a group reply in mutt the last time, lets see if a direct reply and manuall CC: works right. > > 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, thus: > > >>> range() > Traceback (most recent call last): > File "<input>", line 1, in ? > TypeError: range expected at least 1 arguments, got 0 That`s a very useful hint :) (makes me ask myself why I didn`t thought about that yet ;)). > So it looks like TypeError but personally I'm not so sure > that works for argv... I think a simple usage message and > exit with non zero is fine. Well, that`s an option I didn`t thought of yet, I think I`ll do it that way then. Thanks or all your feedback. Best Regards Michael -- Michael Klier
signature.asc
Description: Digital signature
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor