From 7a25261bcc2637929d040684e474644dcf8c11be Mon Sep 17 00:00:00 2001 From: Olivier Guilyardi Date: Wed, 24 Feb 2010 14:34:58 +0000 Subject: [PATCH] minor api enhancement: add IValueAnalyzer.__str__() --- api.py | 4 ++++ 1 file changed, 4 insertions(+) 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""" -- 2.39.5