[BangPypers] Return values
Noufal Ibrahim KV
noufal at nibrahim.net.in
Sat Sep 20 12:53:39 CEST 2014
On Sat, Sep 20 2014, Anand Chitipothu wrote:
> Oh, that feels like PHP. That style seems to be popular in that side of the
> It might be a good idea to add consolidate method on the return value.
> Something like:
> class StatsList(list):
> def consolidate(self):
> print get_stats(..)
> print get_stats(..).consolidate()
That's a nice solution. It's similar to what Senthil suggested but I
like the API better.
More information about the BangPypers