Great, this looks like just the kind of thing I was looking for. Actually,
more than I was looking for, but I won't complain. ;)
Does the paper you have on-line reflect how the implementation will be
under Python 1.2, with the new extensions? The description of the
MetaClass instance make it sound like these classes would possibly appear
different to the Python program than the standard classes... or is the
syntax something like -
MyBaseClase(MetaClass):
...
And is it likely that this class system will at some point become a
standard part of the Python language? How much additional code does this
implementation need, in comparison to the current class implementation?
Off on a completely different direction... since you've been doing work on
the Xt and Motif stuff, I'm wondering how you have handled argument lists?
It seems like it would be very nice, not only in this situation, to be able
to do something similar to arguments when instantiating classes. In
particular, I've been thinking of a "Tag" type, which would be a Python
type which identifies a specific argument and what type it should be.
Basically much like how X argument lists [and AmigaDOS tag lists ;)] work,
allowing both C and Python programs to define new tags. A tag would
probably also have a method which takes the argument following it and
returns a boolean indicating whether it is of the correct type. It seems
like your CType system would make this much more workable, as you would
have that dictionary of available types.
----------------------------------------------------------------------------
Dianne Kyra Hackborn "Gail has said in interviews that one of the
hackbod@mail.cs.orst.edu things that makes our relationship work is the
Oregon State University fact that we hardly ever get to talk to each
//www.cs.orst.edu/~hackbod/ other." -- Frank Zappa