Why new Python 2.5 feature "class C()" return old-style class ?
Peter Otten
__peter__ at web.de
Tue Apr 11 11:32:25 EDT 2006
Aahz wrote:
> The whole point of adding the () option to
> classes was to ease the learning process for newbies who don't
> understand why classes have a different syntax from functions.
That cuts both ways. Now a determined newbie won't understand why
def f: pass
and
bases = A, B
class C(*bases): pass
don't work as expected...
Peter
More information about the Python-list
mailing list