Re: Advice requested on class design

2010-04-28 Thread Walter Wefft
Alan Ristow wrote: I would like to have three classes, ClassA, ClassB, and ClassC, that are essentially the same, the only difference being that each class has a different range of valid values for its properties. Thus, the obvious solution is to create a base class, then subclass from that a

Re: Advice requested on class design

2010-04-28 Thread Jean-Michel Pichavant
- "Alan Ristow" wrote: > Hi all, > > I am relatively new to Python, though not to programming in general, and > using Python 2.6. I have a design problem that I cannot quite decide how to > handle and I am hoping for some advice. > > I would like to have three classes, ClassA, ClassB,

Advice requested on class design

2010-04-28 Thread Alan Ristow
Hi all, I am relatively new to Python, though not to programming in general, and using Python 2.6. I have a design problem that I cannot quite decide how to handle and I am hoping for some advice. I would like to have three classes, ClassA, ClassB, and ClassC, that are essentially the same, the o