Class mutation
Dale Strickland-Clark
dale at riverhall.NOSPAMco.uk
Thu Sep 27 08:10:27 EDT 2001
"Carlos Gaston Alvarez" <cgaston at moonqzie.com> wrote:
>What about the 'State' pattern?
Pardon? Meaning what?
>
>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
>>
>
--
Dale Strickland-Clark
Riverhall Systems Ltd
More information about the Python-list
mailing list