[issue7681] Incorrect division in [wave.py] causing crash

2010-01-12 Thread Alf P. Steinbach
Alf P. Steinbach added the comment: No, sorry, the bugs in [wave.py] have nothing to do with a name IN A COMMENT in the trivial code to exercise the bugs. To reproduce the crash, just run the supplied code with Python 3.1.1 in Windows XP. The cause of the crash is, as I pointed out, use of P

[issue7681] Incorrect division in [wave.py] causing crash

2010-01-12 Thread Brian Curtin
Brian Curtin added the comment: In your example, the "n_frames" name does not exist, which is causing the problem. In your first comment, "framerate" also did not exist. I don't know what a proper frame rate value is, but I just put 10 in there and it worked fine. Can you confirm? --

[issue7681] Incorrect division in [wave.py] causing crash

2010-01-12 Thread Alf P. Steinbach
Alf P. Steinbach added the comment: Sorry, here's correct error message: Traceback (most recent call last): File "C:\Documents and Settings\Alf\sound\error.py", line 8, in writer.writeframes( b"\0"*2*4 ) File "C:\Program Files\cpython\python31\lib\wave.py", line 432, in writeframes

[issue7681] Incorrect division in [wave.py] causing crash

2010-01-12 Thread Alf P. Steinbach
Changes by Alf P. Steinbach : Removed file: http://bugs.python.org/file15834/error.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7681] Incorrect division in [wave.py] causing crash

2010-01-12 Thread Alf P. Steinbach
New submission from Alf P. Steinbach : CPython 3.1.1 in Windows XP. Traceback (most recent call last): File "C:\Documents and Settings\Alf\sound\error.py", line 6, in writer.setframerate( framerate ) NameError: name 'framerate' is not defined Exception wave.Error: Error('sampling rate not