Grokbase Groups Python tutor May 2005
FAQ

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 || jeffrice at finity.org || www.finity.org

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 5 | next ›
Discussion Overview
grouptutor @
categoriespython
postedMay 12, '05 at 4:39a
activeMay 16, '05 at 12:18a
posts5
users2
websitepython.org

2 users in discussion

Jeffrey Rice: 3 posts Danny Yoo: 2 posts

People

Translate

site design / logo © 2022 Grokbase