Re: [Tutor] Error in class definition of __init__

2018-02-15 Thread Alan Gauld via Tutor
On 15/02/18 01:27, Leo Silver wrote: > Hello. > > I'm trying to create a class to represent products which includes a list of > volume based pricing and sets the first of these as the unit price: > > def __init__(self, RatePlanID): > self.id = RatePlanID > self.name = RatePlan

Re: [Tutor] Error in class definition of __init__

2018-02-15 Thread Peter Otten
Leo Silver wrote: > Hello. > > I'm trying to create a class to represent products which includes a list > of volume based pricing and sets the first of these as the unit price: > > def __init__(self, RatePlanID): > self.id = RatePlanID > self.name = RatePlans.toggleids[self.i

[Tutor] Error in class definition of __init__

2018-02-15 Thread Leo Silver
Hello. I'm trying to create a class to represent products which includes a list of volume based pricing and sets the first of these as the unit price: def __init__(self, RatePlanID): self.id = RatePlanID self.name = RatePlans.toggleids[self.id] self.pricing = RatePlans