Add str methods to Classes
elibroftw opened this issue · comments
Elijah Lopez commented
When I do print(object)
where object
is a WavInfoChunkReader
or WavInfoReader
, the output should be more informative. I was thinking you should print a dictionary of their attributes.
Elijah Lopez commented
Also, you should add a .length attribute to data
Jamie Hardt commented
I wouldn't want to just dump attributes there, I'd rather people do that through walk
. Is there something specific you wanna get out of the debug? I think the __repr__
output now isn't great I agree.
Elijah Lopez commented
Why not? It would increase productivity and be more informative. At least some metadata? Especially for WavInfoChunkReader since there is no __repr__
defined
Jamie Hardt commented
This is resolved in PR#8 1a3417d