class C: vs class C(object):

Steven D'Aprano steve at REMOVE.THIS.cybersource.com.au
Fri Jul 20 09:59:00 EDT 2007


On Thu, 19 Jul 2007 10:42:54 -0700, Aahz wrote:

> In article <pan.2007.07.19.08.09.59.261957 at REMOVE.THIS.cybersource.com.au>,
> Steven D'Aprano  <steve at REMOVE.THIS.cybersource.com.au> wrote:
>>
>>It isn't wrong to use the old style, but it is deprecated, [...]
> 
> Really?  Can you point to some official documentation for this?  AFAIK,
> new-style classes still have not been integrated into the standard
> documentation.  Maybe I missed something, though.
> 
> Note very carefully that "going away eventually" is *not* the same as
> deprecation.


*slaps head*

Yes, Aahz is correct, and I for one should have known better: see this
thread, for example, where I not only defend the use of old style classes
but explicitly stated that they *weren't* deprecated.

http://groups.google.com.au/group/comp.lang.python/browse_thread/thread/c33c458568b1027c/52fabc6398a566b6?lnk=st&q=steven+aahz+new+style+classes+&rnum=1#52fabc6398a566b6


Mea culpa.


-- 
Steven.




More information about the Python-list mailing list