improving performance of writing into a pipe

mikprog at gmail.com mikprog at gmail.com
Mon Feb 18 12:00:35 EST 2013


[..]
> 
> I don't see an exception in your answer. Where did you put it for us?
> 

well I just did print a message:

    PIPEPATH = ["/tmp/mypipe"]

[..]
        try:
            self.process = os.popen( self.PIPEPATH, 'w')
        except:
            print "Error while trying opening the pipe!"
            print "check: ", self.PIPEPATH
            exit()

I see the error messages.

It's quite frustrating as I think I am doing something really stupid in here.

Mik



More information about the Python-list mailing list