should I put old or new style classes in my book?

Arnaud Delobelle arnodel at googlemail.com
Fri May 30 09:36:06 EDT 2008


"Eduardo O. Padoan" <eduardo.padoan at gmail.com> writes:

> On Thu, May 29, 2008 at 3:06 PM, Jason <tenax.raccoon at gmail.com> wrote:
>> I've got Python 3.0 alpha 2.  In this version, it looks like you can
>> define classes in either the old style or new style.  (I snipped the
>> top line a bit in the following example):
>
> Wrong. Py3k Classes are always new-style. They subclass object
> implicitly when no superclass is given.

I think he was talking about syntax, not object types.

-- 
Arnaud



More information about the Python-list mailing list