At 04:29 PM 5/15/2005, Danny Yoo wrote:
> > clamav.fromchild.close
>   ^^^^^^^^^^^^^^^^^^^^^^
>Careful: you may need parens there on your 'close' line.  (clothesline?
>*grin*)
>
>As written, that last statement doesn't fire off the close() method.
>This might be suprising because some other languages make parens optional.
>But we need them in Python because Python makes it very easy to get
>function references:

The program appears to work fine as written, in fact, but apparently was 
not doing exactly what I thought.  I assume the stream would be closed at 
the end of the program if I did not do it explicitly, but it is 
sloppy.  Interesting that the following clawav.wait() statement seem to 
function fine even though the close statement lacked its parens.

Jeff

*       *       *       *       *       *       *
Jeffrey Rice    ||     [EMAIL PROTECTED]      ||  www.finity.org

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

Reply via email to