[BangPypers] Return values

Noufal Ibrahim KV noufal at nibrahim.net.in
Sat Sep 20 18:47:58 CEST 2014

On Sat, Sep 20 2014, Sriram Karra wrote:


> Anand's solution is good. But with the added context you have given - why
> are you not creating classes for CPU and Machine, with get_stats() and
> set_stats() methods for them? Something like:

This is a higher level abstraction and something I might cook up
depending on the application. 

My question was about the implementation of the get_cpu_stats function
and its behaviour depending on the summary flag.



More information about the BangPypers mailing list