Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18797 > unrolled thread

Re: your feedback to my first project please

Started byTerry Reedy <tjreedy@udel.edu>
First post2012-01-10 20:53 -0500
Last post2012-01-10 20:53 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: your feedback to my first project please Terry Reedy <tjreedy@udel.edu> - 2012-01-10 20:53 -0500

#18797 — Re: your feedback to my first project please

FromTerry Reedy <tjreedy@udel.edu>
Date2012-01-10 20:53 -0500
SubjectRe: your feedback to my first project please
Message-ID<mailman.4623.1326246913.27778.python-list@python.org>
On 1/10/2012 9:06 AM, Jean-Michel Pichavant wrote:

> - I quite dislike your avg method which does more than averaging, it
> also inserts a value and removes another modifying the object in place.
> It could be very confusing for someone reading your code. Fortunately,
> you have documented it, that makes it acceptable. Why don't you make avg
> only averaging. Surely you can use the add method right before.

Or use a better name, like running_average or run_mean (if that is what 
it is doing).

-- 
Terry Jan Reedy

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web