atom feed21 messages in org.python.tutor[Tutor] sockets, files, threads
FromSent OnAttachments
Marilyn DavisJan 13, 2005 2:04 am 
Danny YooJan 13, 2005 2:31 am 
Danny YooJan 13, 2005 2:41 am 
Marilyn DavisJan 13, 2005 3:17 am 
Danny YooJan 13, 2005 6:29 am 
Alan GauldJan 13, 2005 10:20 am 
Marilyn DavisJan 15, 2005 11:19 pm 
Marilyn DavisJan 16, 2005 3:12 am 
Marilyn DavisJan 16, 2005 6:47 am 
Danny YooJan 16, 2005 7:40 am 
Marilyn DavisJan 17, 2005 5:02 am 
Danny YooJan 18, 2005 10:51 am 
Danny YooJan 18, 2005 7:24 pm 
Marilyn DavisJan 19, 2005 2:32 am 
Danny YooJan 19, 2005 8:12 am 
Kent JohnsonJan 19, 2005 12:35 pm 
Marilyn DavisJan 19, 2005 8:57 pm 
Marilyn DavisJan 19, 2005 9:13 pm 
Danny YooJan 19, 2005 9:53 pm 
Marilyn DavisJan 19, 2005 10:28 pm 
Marilyn DavisJan 21, 2005 5:05 am 
Subject:[Tutor] sockets, files, threads
From:Marilyn Davis (mari@deliberate.com)
Date:Jan 19, 2005 10:28:02 pm
List:org.python.tutor

On Wed, 19 Jan 2005, Danny Yoo wrote:

On Wed, 19 Jan 2005, Marilyn Davis wrote:

class Exim: def __init__(self): self.fdin = None self.err_flush = [] self.stdout, self.stdin, self.stderr = popen2.popen3('%s -t' % MAILER) self.fdin = self.stdin.fileno() self.fdout = self.stdout.fileno() self.fderr = self.stderr.fileno()

Hi Marilyn,

You probably don't need to explicitly use the file descriptors here. I see that you're using them because of the use of select() later on:

Yippee! This stopped the error. Whew! Odd that it didn't happen on 2.3.

Whatever.

One wonders, how many times do you guys have to tell me to stop mixing file descriptors and file objects? I guess this was old code, before you told me that <-- weak excuse.

Having the __del__ doesn't seem to hurt anything, which is a relief. There are times when I want to call close_up() and not __del__ in my real code.

Are you well yet? A lot of sick people around these days!

Feeling better.

Good. Take care.

And, thank you some more.

Marilyn