[issue1512791] module wave does no rounding

Mark Dickinson report at bugs.python.org
Sat Aug 28 19:27:48 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

I also meant to add that I left the int() call in, for slightly obscure reasons:  round doesn't currently return an int for all numeric types---it does for ints, floats and Decimal instances, but not for Fraction instances (arguably a defect of the fractions module, but that's another issue).  The 'int' doesn't seem like a huge extra cost, and it's conceivable that people might use Fraction for framerates, so it seemed safer to leave it in.

----------
status: pending -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1512791>
_______________________________________


More information about the Python-bugs-list mailing list