iluvcapra / wavinfo

Probe WAVE Files for all metadata

Home Page:https://wavinfo.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add str methods to Classes

elibroftw opened this issue · comments

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.

Also, you should add a .length attribute to data

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.

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

This is resolved in PR#8 1a3417d