[Python-Dev] Multiple inheritance

Barry A. Warsaw barry@digicool.com
Fri, 4 May 2001 14:57:09 -0400


>>>>> "JE" == Jeff Epler <jepler@inetnebr.com> writes:

    >> class X (Y rename foo as _sfoo, bar as _sbar ):

    | Why not let us spell this as:
    | 	class X(Y):
    | 		from Y import foo as _sfoo, bar as _sbar
    | 		...

>>>>> "NS" == Neil Schemenauer <nas@python.ca> writes:

    NS> This already has a meaning in Python.  Paul's suggested syntax
    NS> is pretty neat, IMHO.

Not if Y is a class though, right?  That would currently raise an
ImportError, so why not hijack it for this purpose?  I think it has a
natural and clear enough meaning without requiring additional
keywords, or complicating the base class specification syntax.

-Barry