Re: [Tutor] looking for some general advice

2007-06-11 Thread Michael Klier
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 i

Re: [Tutor] looking for some general advice

2007-06-10 Thread Kent Johnson
Alan Gauld wrote: > "Michael Klier" <[EMAIL PROTECTED]> 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? >

Re: [Tutor] looking for some general advice

2007-06-10 Thread Alan Gauld
"Michael Klier" <[EMAIL PROTECTED]> 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

Re: [Tutor] looking for some general advice

2007-06-10 Thread Michael Klier
Alan Gauld wrote: > 1) Best to be specific in your except clauses. Generic > catch-anything type clauses can lead to misleading error > messages. They are OKmat the top level of a program for > distribution as a way of shielding innocent users from stack > traces but during development and espe

Re: [Tutor] looking for some general advice

2007-06-10 Thread Alan Gauld
Michael, That's a fairly big project for a first timer, its obvious that you are new to Python rather than to programming. It looks pretty good to be honest, the main things I'd flag are: 1) Best to be specific in your except clauses. Generic catch-anything type clauses can lead to misleading

[Tutor] looking for some general advice

2007-06-10 Thread Michael Klier
Hi everyone, I`ve started to dive into python a few weeks ago and am about to finish my first script that surves a purpose, namely fetching podcasts on a headless machine on a daily basis (fired up via cron). I use the pickle module to save the information about the podcasts feeds and the script p