Re: [Tutor] Looking for Constructs to Remove Redundant Code

2006-03-31 Thread Ilias Lazaridis
Kent Johnson wrote: ... Thank you for your comments. I realize that my request was not very clear. I make a 2nd attemp, more simplified: I have this python code: class Car(BaseClass) : manufacturer = stringFactory() model = stringFactory() modelYear = integerFactory() d

Re: [Tutor] Looking for Constructs to Remove Redundant Code

2006-03-31 Thread Kent Johnson
Ilias Lazaridis wrote: > I have this python code > > class Car: > """Type of car.""" > > manufacturer = f.string() > model = f.string() > modelYear = f.integer() > > _key(manufacturer, model, modelYear) > > def __str__(self): > return '%s %s %s' % (self.mo

[Tutor] Looking for Constructs to Remove Redundant Code

2006-03-31 Thread Ilias Lazaridis
I have this python code class Car: """Type of car.""" manufacturer = f.string() model = f.string() modelYear = f.integer() _key(manufacturer, model, modelYear) def __str__(self): return '%s %s %s' % (self.modelYear, self.manufacturer, self.model) - and w