Why new Python 2.5 feature "class C()" return old-style class ?
Duncan Booth
duncan.booth at invalid.invalid
Tue Apr 11 10:43:05 EDT 2006
bruno at modulix wrote:
>> cause is bother me to
>> type "(object)" when I don't need their features.
>
> Please repeat this 101 times each morning:
> "thou shall not use old-style classes for they are deprecated".
It's a pity though that Python still uses old-style classes internally,
even for some things which are brand new:
>>> from __future__ import with_statement
>>> type(with_statement)
<type 'instance'>
(yes, I know that the _Feature class isn't actually new, just this
particular instance of it.)
More information about the Python-list
mailing list