[Python-bugs-list] [ python-Bugs-818006 ] ossaudiodev FileObject
does not support closed const
SourceForge.net
noreply at sourceforge.net
Sun Oct 5 16:32:30 EDT 2003
Bugs item #818006, was opened at 2003-10-05 02:30
Message generated for change (Comment added) made by dcinege
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=818006&group_id=5470
Category: Extension Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Dave Cinege (dcinege)
Assigned to: Nobody/Anonymous (nobody)
Summary: ossaudiodev FileObject does not support closed const
Initial Comment:
fin = ossaudiodev.open(dspfile, 'r')
if fin.closed == True:
AttributeError: closed
----------------------------------------------------------------------
>Comment By: Dave Cinege (dcinege)
Date: 2003-10-05 16:32
Message:
Logged In: YES
user_id=314434
Please see:
http://python.org/doc/current/lib/bltin-file-objects.html
"""
File objects also offer a number of other interesting attributes.
These are not required for file-like objects, but should be
implemented if they make sense for the particular object.
""
"Should be" when they "make sense" is my rational for
reporting this as a bug.
I found this by trying to convert existing code from a normal
open of /dev/dsp to ossaudiodev.open(), that IMO "should"
have worked. : P
Other attributes that "should be" implemented (mode and
name) because they "make sense" may also be missing...I
haven't checked.
----------------------------------------------------------------------
Comment By: Terry J. Reedy (tjreedy)
Date: 2003-10-05 16:16
Message:
Logged In: YES
user_id=593130
>From Lib Ref 14.11 ossaudiodev "open( [device, ]mode)
Open an audio device and return an OSS audio device object.
"
Checking http://python.org/doc/current/lib/ossaudio-device-
objects.html 14.11.1 Audio Device Objects I can find no
mention of closed attribute or indeed of any attributes other
than methods. Why were you expecting such? If report is a
mistake, please close.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=818006&group_id=5470
More information about the Python-bugs-list
mailing list