Re: calling command line programs?

2005-09-11 Thread chriss
Grant Edwards wrote: > On 2005-09-10, chriss <[EMAIL PROTECTED]> wrote: > >>> Take a look at os.popen, os.spawn, or the popen2, and >>> subprocess modules. >>> >>> That last one seems to be gaining popularity. >> >> The suggested

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(.

Re: calling command line programs?

2005-09-10 Thread chriss
ling >> need to see). > > Take a look at os.popen, os.spawn, or the popen2, and > subprocess modules. > > That last one seems to be gaining popularity. > The suggested modules and functions have been deprecated according to the python 2.4 docs. The doc suggests to use the functions in the 'subprocess' module. chriss -- http://mail.python.org/mailman/listinfo/python-list

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

2005-09-10 Thread chriss
t 1 must be type, not classobj'. Now, if I use 'Exception.__init__(..)' instad of super(..)... ,everything works just as one would expect. Why does 'super(..).__init__(..)' fail? thank you for any suggestions chriss Here is some example code to illustrate the point: cl