classification
Title: ConfigParser.RawConfigParser it's an "old-style" class
Type: Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: ZeD, benjamin.peterson
Priority: normal Keywords:

Created on 2009-04-21 15:12 by ZeD, last changed 2009-04-21 18:16 by benjamin.peterson. This issue is now closed.

Messages (2)
msg86232 - (view) Author: Vito De Tullio (ZeD) Date: 2009-04-21 15:12
RawConfigParser does not inherit from object, so using (to make an
example) super() it's impossible.

Python 2.6 (r26:66714, Feb  3 2009, 20:52:03)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ConfigParser import RawConfigParser
>>> class MyConfigParser(RawConfigParser):
...     def __init__(self):
...         super(MyConfigParser, self).__init__()
...
>>> mcp = MyConfigParser()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 3, in __init__
TypeError: super() argument 1 must be type, not classobj
>>>
msg86254 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-04-21 18:16
Changing it would break compatibility.
History
Date User Action Args
2009-04-21 18:16:42benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg86254

resolution: wont fix
2009-04-21 15:12:42ZeDcreate