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

Alan G Isaac aisaac at american.edu
Fri May 30 16:39:35 EDT 2008


> Alan Isaac <aisaac at american.edu> writes:
>> I take it from this thread that in Python 3 the following are
>> equivalent:

>>        class Test: pass

>>        class Test(object): pass


Arnaud Delobelle wrote:
> I don't know where it is stated, but how could they *not* be
> equivalent?

The most obvious way would be that the former became an illegal
syntax.  But in Python 3 alpha, it is accepted, so I assume that it
will continue to be?

Cheers,
Alan Isaac



More information about the Python-list mailing list