Re: [Tutor] General programming questions

2005-10-27 Thread w chun
On 10/27/05, Matt Williams <[EMAIL PROTECTED]> wrote: > At the moment, I have something like: > > def __init__ (self, a, b, c): > if type(a) == type("a") > then. > elif type(a) == type(["a"]) > then > > I'm sure there must be a better way to do this

Re: [Tutor] General programming questions

2005-10-27 Thread Alan Gauld
> 1: I need to create objects that have variable levels of behaviour > (controlled perhaps by a .config file). I can do the file reading, etc. > - but how do I implement the behaviour, apart from just re-writing all > the functions for each config level? Usually by having multiple subclasses and i

[Tutor] General programming questions

2005-10-27 Thread Matt Williams
Dear List, I've got a few general programming (not really specific to python, although you're all so helpful, I thought I'd ask here). I understand some of these are a bit long, so if you could just point me to some resources, I'd be very grateful. 1: I need to create objects that have variable l