Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18797 > unrolled thread
| Started by | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| First post | 2012-01-10 20:53 -0500 |
| Last post | 2012-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.
Re: your feedback to my first project please Terry Reedy <tjreedy@udel.edu> - 2012-01-10 20:53 -0500
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2012-01-10 20:53 -0500 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web