Message86232
| Author |
ZeD |
| Recipients |
ZeD |
| Date |
2009年04月21日.15:12:42 |
| SpamBayes Score |
7.92898e-11 |
| Marked as misclassified |
No |
| Message-id |
<1240326763.95.0.709769411309.issue5807@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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
>>> |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年04月21日 15:12:44 | ZeD | set | recipients:
+ ZeD |
| 2009年04月21日 15:12:43 | ZeD | set | messageid: <1240326763.95.0.709769411309.issue5807@psf.upfronthosting.co.za> |
| 2009年04月21日 15:12:42 | ZeD | link | issue5807 messages |
| 2009年04月21日 15:12:42 | ZeD | create |
|