dynamically selecting a class to instantiate based on the object attributes.

Karl Knechtel zahlman at gmail.com
Mon May 14 13:52:32 EDT 2012


On Wed, May 9, 2012 at 7:02 AM, J. Mwebaze <jmwebaze at gmail.com> wrote:
>
> During object instantiaton, i would like to use  the specific class, that
> corresponds to the version of the class that was used to create the object.

I don't understand; "the version of the class that was used to create"
**what** object? We're still in the middle of object instantiation!
Where is the version information coming from?

Are you perhaps trying to do something with (un)serialization? Could
you show any relevant code at all?

-- 
~Zahlman {:>



More information about the Python-list mailing list