A 'Python like' language
Greg Ewing (using news.cis.dfn.de)
ieyf4fu02 at sneakemail.com
Mon Mar 29 21:37:03 EST 2004
Sean Ross wrote:
> Proto = Proto1.clone().__bases__ = (Proto2, )
> obj = Proto1.clone()
>
> or
>
> Proto = Proto1.clone().include(Proto2) # <- might want to save that for
> mixins
> obj = Proto1.clone()
With the syntactic sugar I suggested this would be
object Proto(Proto1, Proto2):
...
and I wouldn't really care what went on under the covers.
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list