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.

[...]


-- 
Cordially,
Noufal
http://nibrahim.net.in
_______________________________________________
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers

Reply via email to