New submission from Matthew Walker :
It would be very useful if the documentation for Python's Wave module mentioned
that 8-bit samples must be unsigned while 16-bit samples must be signed.
See the Wikipedia article on the WAV format: "There are some inconsistencies in
the WAV f
Changes by Matthew Walker :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue14756>
___
___
Python-bugs-list mailing list
Unsubscri
New submission from Matthew Walker :
When initializing a class with an empty dict() object as a default initializer,
if it is not overridden, multiple instances of the class will share the
dictionary. IE:
class test(object):
def __init__(self, obj=dict()):
self.obj = obj
a = test()
b
Matthew Walker added the comment:
Oh, and the stack trace was identical to Greg's:
$ ./test.py
I am process number 10378 : i = 0
[...]
I am process number 10390 : i = 9
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
Exception in thread Thread-1 (most likely raised during interpreter shu
Matthew Walker added the comment:
It looks to me as if this issue has already been pretty much sorted out
already. Maybe all it lacks is to be officially closed, but just in case I
just wanted to add that I too saw this bug (stock python 2.7, Ubuntu 10.04 64
bit).
My example code was