[issue1512791] module wave does no rounding

Neil Tallim report at bugs.python.org
Wed Jul 29 02:27:02 CEST 2009


Neil Tallim <red.hamsterx at gmail.com> added the comment:

Attached a patch with a unit test and solution for this problem.

Patch built against Python 3.2, r74246.

Note: with Python 3.2, an error was thrown if the input value wasn't an
integer because a deprecated struct-related cast was removed. It's
debatable whether we want to actually apply this patch, since the error
couldn't manifest in this version of Python. However, if we patch 2.7,
we might as well patch this to maintain consistency. (Patching 3.2 will
not break anything or make previously broken logic work differently, so
it is safe)

----------
Added file: http://bugs.python.org/file14591/1512791[3.2].diff

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


More information about the Python-bugs-list mailing list