diff options
Diffstat (limited to 'Doc/library/wave.rst')
-rw-r--r-- | Doc/library/wave.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/wave.rst b/Doc/library/wave.rst index 2e64d00..c52af89 100644 --- a/Doc/library/wave.rst +++ b/Doc/library/wave.rst @@ -39,6 +39,11 @@ The :mod:`wave` module defines the following function and exception: :meth:`close` method is called; it is the caller's responsibility to close the file object. + The :func:`.open` function may be used in a :keyword:`with` statement. When + the :keyword:`with` block completes, the :meth:`Wave_read.close() + <wave.Wave_read.close>` or :meth:`Wave_write.close() + <wave.Wave_write.close()>` method is called. + .. function:: openfp(file, mode) |