Hi:

Yes, something like this.

Give it a try first to see if it works well. I haven't actually done it
myself so i cannot guarantee.

Cheers.

On Wed, Aug 24, 2011 at 1:21 PM, Santiago Basulto <
[email protected]> wrote:

> 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.
>



-- 
Yanzheng Li
Technical Solutions Engineer
Partner Solutions Organization
Google Inc.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
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