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 mark.dickinson
Recipients mark.dickinson, serhiy.storchaka, tim.peters
Date 2018-03-02.17:21:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520011313.04.0.467229070634.issue32978@psf.upfronthosting.co.za>
In-reply-to
Content
> If left the OverflowError propagated I would catch it at the caller place (_read_float() is used only once) and reraise as aifc.Error.

Ah, if there's a dedicated exception type already then yes, agreed that raising aifc.Error (with a suitable message) makes much more sense than raising an OverflowError or a ValueError.

> if there are files with an exponent of 0x7fff in wild

I hope there aren't, and I'd consider any such file to be broken/corrupted. That is, unless there's a common practice of using NaNs or infinities for the frame rate. I suppose it's conceivable that people us this as a placeholder meaning "I don't know the sample rate". No idea whether that's true in practice: I'm not a frequent user of this format.
History
Date User Action Args
2018-03-02 17:21:53mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, serhiy.storchaka
2018-03-02 17:21:53mark.dickinsonsetmessageid: <1520011313.04.0.467229070634.issue32978@psf.upfronthosting.co.za>
2018-03-02 17:21:53mark.dickinsonlinkissue32978 messages
2018-03-02 17:21:52mark.dickinsoncreate