This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Queue class does not inherit object
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: jbabel, rhettinger
Priority: normal Keywords:

Created on 2005-06-24 18:01 by jbabel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg25628 - (view) Author: Vincent C�t�-Roy (jbabel) Date: 2005-06-24 18:01
Queue class does not inherit object, and thus is not a
so-called new-style class. 

That means you can't sub-class it and do things like
call super on it.

One would expect all classes shipped with the Python
library to inherit object, especially since it's so
easy to apply such a change.
msg25629 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-06-29 20:15
Logged In: YES 
user_id=80475

Correction, both new and old style classes can be
subclassed.  Also, super() is best used on classes that were
specifically designed for it.

In general, we've had a policy of not converting modules
from old-style to new-style.   This avoids unnecessary
inter-version issues.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42117
2005-06-24 18:01:42jbabelcreate