Re: Useful module to be written by a newbie

2015-05-09 Thread Cecil Westerhof
Op Saturday 9 May 2015 08:10 CEST schreef Michael Welle: > Cecil Westerhof writes: > >> Op Wednesday 29 Apr 2015 21:03 CEST schreef Peter Otten: >> > Realistically a Python coder with a little experience will have > a glance at your code and run away. Oops, that is not nice to h

Re: Useful module to be written by a newbie

2015-04-29 Thread Peter Otten
Cecil Westerhof wrote: > Op Wednesday 29 Apr 2015 21:03 CEST schreef Peter Otten: >> I was judging from the look of your MovingAverage. >> >> I don't like the interface, it really should take an iterable so >> that you can write >> > list(moving_average([1,2,3], 2)) >> [1.5, 2.5] > > I shoul

Re: Useful module to be written by a newbie

2015-04-29 Thread Cecil Westerhof
Op Wednesday 29 Apr 2015 21:03 CEST schreef Peter Otten: >>> Realistically a Python coder with a little experience will have a >>> glance at your code and run away. >> >> Oops, that is not nice to hear. :'-( > > Sorry, I did not mean to discourage you or insult you, I just wanted > to make it cle

Re: Useful module to be written by a newbie

2015-04-29 Thread Ian Kelly
On Wed, Apr 29, 2015 at 1:03 PM, Peter Otten <__pete...@web.de> wrote: > I was judging from the look of your MovingAverage. > > I don't like the interface, it really should take an iterable so that you > can write > list(moving_average([1,2,3], 2)) > [1.5, 2.5] The problem with this is that m

Re: Useful module to be written by a newbie

2015-04-29 Thread Peter Otten
Cecil Westerhof wrote: > Op Wednesday 29 Apr 2015 18:27 CEST schreef Peter Otten: > >> Cecil Westerhof wrote: >> >>> I have experience with Python, but it has been some time ago. The >>> best way to relearn a language (for me) is just make a lot of code >>> with it. But it would be nice if it was

Re: Useful module to be written by a newbie

2015-04-29 Thread Cecil Westerhof
Op Wednesday 29 Apr 2015 18:27 CEST schreef Peter Otten: > Cecil Westerhof wrote: > >> I have experience with Python, but it has been some time ago. The >> best way to relearn a language (for me) is just make a lot of code >> with it. But it would be nice if it was useful at the same time. I >> st

Re: Useful module to be written by a newbie

2015-04-29 Thread Peter Otten
Cecil Westerhof wrote: > I have experience with Python, but it has been some time ago. The best > way to relearn a language (for me) is just make a lot of code with it. > But it would be nice if it was useful at the same time. I started a > Python library on GitHub: > https://github.com/CecilW