[issue18615] sndhdr.whathdr could return a namedtuple

Claudiu.Popa report at bugs.python.org
Tue May 13 13:38:46 CEST 2014


Claudiu.Popa added the comment:

But it improves the API. It's much nicer to actually access the values returned by sndhdr as f.type, f.sampling_rate, f.channels than f[0], f[1], f[2]. You do have a point though. Would it be more acceptable if we'll provide a new function which returns a namedtuple and leaving `whathdr` and `what` in peace?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18615>
_______________________________________


More information about the Python-bugs-list mailing list