Why new Python 2.5 feature "class C()" return old-style class ?
bruno at modulix
onurb at xiludom.gro
Tue Apr 11 10:20:13 EDT 2006
bearophileHUGS at lycos.com wrote:
> bruno at modulix>Since the class statement without superclass actually
> creates an old-style class, I'd expect the "class MyClass():" variant
> to behave the same.<
>
> In Python 3.0 I really hope the
>
> class C: pass
> class C(): pass
> class C(object): pass
>
> will mean the same thing.
Yes, but this is for 3.0. Actually we're still at 2.5.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list