From: Olivier Guilyardi Date: Wed, 24 Feb 2010 14:34:58 +0000 (+0000) Subject: minor api enhancement: add IValueAnalyzer.__str__() X-Git-Tag: 0.3.2~175 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7a25261bcc2637929d040684e474644dcf8c11be;p=timeside.git minor api enhancement: add IValueAnalyzer.__str__() --- diff --git a/api.py b/api.py index 4ecaa3a..7ceaecf 100644 --- a/api.py +++ b/api.py @@ -197,6 +197,10 @@ class IValueAnalyzer(IAnalyzer): """Return the final result of the analysis performed over the data passed by repeatedly calling process()""" + def __str__(self): + """Return a human readable string containing both result and unit + ('5.30dB', '4.2s', etc...)""" + class IEffect(IProcessor): """Effect processor interface"""