Re: class 'Exception', unable to use 'super' to call superclass initializer

2005-09-10 Thread chriss
Peter Hansen wrote: > chriss wrote: >> Hi, >> >> environment: Python 2.4, GNU/Linux, kernel 2.6.12.2 >> >> having subclassed 'Exception' I'm trying to call the initialiser >> __init__(...) of the superclass Exception with 'super(..).__init__(..)' . >> However, trying to do so results in a >> 'Ty

Re: class 'Exception', unable to use 'super' to call superclass initializer

2005-09-10 Thread Peter Hansen
chriss wrote: > Hi, > > environment: Python 2.4, GNU/Linux, kernel 2.6.12.2 > > having subclassed 'Exception' I'm trying to call the initialiser > __init__(...) of the superclass Exception with 'super(..).__init__(..)' . > However, trying to do so results in a > 'TypeError: super() argument 1 mus

Re: class 'Exception', unable to use 'super' to call superclass initializer

2005-09-10 Thread Robert Kern
chriss wrote: > Hi, > > environment: Python 2.4, GNU/Linux, kernel 2.6.12.2 > > having subclassed 'Exception' I'm trying to call the initialiser > __init__(...) of the superclass Exception with 'super(..).__init__(..)' . > However, trying to do so results in a > 'TypeError: super() argument 1 mus

class 'Exception', unable to use 'super' to call superclass initializer

2005-09-10 Thread chriss
Hi, environment: Python 2.4, GNU/Linux, kernel 2.6.12.2 having subclassed 'Exception' I'm trying to call the initialiser __init__(...) of the superclass Exception with 'super(..).__init__(..)' . However, trying to do so results in a 'TypeError: super() argument 1 must be type, not classobj'. Now