iluvcapra / wavinfo

Probe WAVE Files for all metadata
https://wavinfo.readthedocs.io/
MIT License
36 stars 7 forks source link

Add str methods to Classes #6

Closed elibroftw closed 4 years ago

elibroftw commented 4 years ago

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.

elibroftw commented 4 years ago

Also, you should add a .length attribute to data

iluvcapra commented 4 years ago

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.

elibroftw commented 4 years ago

Why not? It would increase productivity and be more informative. At least some metadata? Especially for WavInfoChunkReader since there is no __repr__ defined

iluvcapra commented 4 years ago

This is resolved in PR#8 1a3417d3e5500acfbff50894481946435f892b9e