dynamic-on-demand classes Re: Copy constructors

Kirby Urner urner at alumni.princeton.edu
Mon Aug 13 17:29:41 CEST 2001


Would it make any sense for dynamic classes to be a subclass
of some new kind of Object, e.g. a class of DynamicObjectType?
Ordinary classes, as subclasses of Object, would be assumed to
be static.

This would be like making tuples a root type, with lists a subclass
of tuple -- they inherit the functionality of tuples, plus add mutability
and a host of other things.  

In this sense classes would come in two variaties, immutable (default)
and mutable (different type of class).

When you want a dynamic class, you would subclass DynaObject or 
something like that, plus have other parents if you needed them.

Kirby




More information about the Python-list mailing list