[Python-checkins] python/dist/src/Doc/lib libossaudiodev.tex,
1.12.4.1, 1.12.4.2
gward at users.sourceforge.net
gward at users.sourceforge.net
Mon Mar 7 02:32:06 CET 2005
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25666/Doc/lib
Modified Files:
Tag: release24-maint
libossaudiodev.tex
Log Message:
SF #818006: add useful read-only attributes to oss_audio_device object:
'closed', 'name', and 'mode' (as recommended by
http://python.org/doc/current/lib/bltin-file-objects.html).
Index: libossaudiodev.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libossaudiodev.tex,v
retrieving revision 1.12.4.1
retrieving revision 1.12.4.2
diff -u -d -r1.12.4.1 -r1.12.4.2
--- libossaudiodev.tex 1 Jan 2005 00:34:53 -0000 1.12.4.1
+++ libossaudiodev.tex 7 Mar 2005 01:32:03 -0000 1.12.4.2
@@ -115,7 +115,7 @@
as flexible in all cases.
The audio device objects returned by \function{open()} define the
-following methods:
+following methods and (read-only) attributes:
\begin{methoddesc}[audio device]{close}{}
Explicitly close the audio device. When you are done writing to or
@@ -289,6 +289,21 @@
buffer to be played without blocking.
\end{methoddesc}
+Audio device objects also support several read-only attributes:
+
+\begin{memberdesc}[audio device]{closed}{}
+Boolean indicating whether the device has been closed.
+\end{memberdesc}
+
+\begin{memberdesc}[audio device]{name}{}
+String containing the name of the device file.
+\end{memberdesc}
+
+\begin{memberdesc}[audio device]{mode}{}
+The I/O mode for the file, either \code{"r"}, \code{"rw"}, or \code{"w"}.
+\end{memberdesc}
+
+
\subsection{Mixer Device Objects \label{mixer-device-objects}}
The mixer object provides two file-like methods:
More information about the Python-checkins
mailing list