| Trees | Indices | Help |
|
|---|
|
|
object --+
|
closing
Context to automatically close something at the end of a block.
Code like this:
with closing(<module>.open(<arguments>)) as f:
<block>
is equivalent to this:
f = <module>.open(<arguments>)
try:
<block>
finally:
f.close()
|
|||
|
|||
|
|||
|
|||
|
|||
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Jun 13 23:37:43 2008 | http://epydoc.sourceforge.net |