Thank you for your answer Yanzheng.

Are you saying something like this?:

class CarFactory():
   def getNewCar(self,doors=4):
      if doors<0:
         raise ...
cf = CarFactory()
car = cf.getNewCar(doors = -1)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/FaKiVwjyX6QJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to