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 languag
> Here is what the code I settled on looks like:
>
> ###
> working = email.message_from_file(open(emailfile))
>
> clamav = popen2.Popen3(clamav_cmd,1)
> clamav.tochild.write(working.as_string())
> clamav.tochild.close()
> clamav_result = clamav.fromchild.read().lstrip('stream: ')
> clamav.fromchi
At 04:17 PM 5/13/2005, Alan Gauld wrote:
>AS a general pont all uppercase usually means a consrtant in Python.
>Variable names typically start lowercase and either use capital
>letters to separate words likeThis, or use underscores like_this.
>
>Variables starting with an uppercase letter tend to i