I need to return a Bike instance to the constructor. For instance:
class Bike(object): def __init__(self,color): self.bikeColor = color return self  
When I do this, I get the following error:
 TypeError: __init__() should return None, not 'Bike' 
If so, how can I return an instance if it is suppose only return None ?
source share