This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jjalocha
Recipients jjalocha
Date 2009-07-19.01:07:44
SpamBayes Score 1.77663e-09
Marked as misclassified No
Message-id <>
Actually, it is not possible to use the 'with' statement in the
ossaudiodev module:

>>> import ossaudiodev
>>> with'/dev/dsp', 'r') as device:
...     pass
Traceback (most recent call last):
  File "<stdin>", line 1 in <module>
AttributeError: 'ossaudodev.oss_audio_device' object has no attribute

In order to provide a similar interface as standard Python files, and
encourage safe coding practices, the 'with' statement should be
supported in the ossaudiodev module.

Date User Action Args
2009-07-19 01:07:46jjalochasetrecipients: + jjalocha
2009-07-19 01:07:46jjalochasetmessageid: <>
2009-07-19 01:07:44jjalochalinkissue6518 messages
2009-07-19 01:07:44jjalochacreate