Class mutation

Carlos Gaston Alvarez cgaston at moonqzie.com
Thu Sep 27 07:41:17 EDT 2001


What about the 'State' pattern?

Chau,

Gaston


----- Original Message ----- 
From: "Dale Strickland-Clark" <dale at riverhall.NOSPAMco.uk>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Thursday, September 27, 2001 1:11 PM
Subject: Class mutation


> Lets say we have a class 'Job' and another class derived from that
> 'ActiveJob'.
> 
> I'd like to mutate a Job object into the extended ActiveJob object
> without re-assigning all the attributes.
> 
> Is this possible? Is it a daft idea? Should I be seeking medical help?
> --
> Dale Strickland-Clark
> Riverhall Systems Ltd
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 





More information about the Python-list mailing list