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



-- 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to