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


Groups > comp.lang.python > #89558

Re: Useful module to be written by a newbie

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'class,': 0.07; 'tests.': 0.07; 'generators': 0.09; 'method,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:module': 0.09; 'url:github': 0.09; 'python': 0.11; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'language': 0.16; 'wrote:': 0.18; 'library': 0.18; 'written': 0.21; 'community.': 0.22; 'header:User-Agent:1': 0.23; 'simpler': 0.24; '(for': 0.26; 'header:X-Complaints-To:1': 0.27; 'idea': 0.28; 'quickly': 0.29; 'along': 0.30; 'code': 0.31; 'away.': 0.31; 'anyone': 0.31; 'me?': 0.32; 'run': 0.32; 'community': 0.33; "i'd": 0.34; 'could': 0.34; 'problem': 0.35; 'classes': 0.35; 'but': 0.35; 'idle': 0.36; 'useful': 0.36; 'unit': 0.37; 'too': 0.37; 'to:addr:python-list': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'most': 0.60; 'ago.': 0.61; "you'll": 0.62; 'world': 0.66; 'friend,': 0.71; 'family': 0.73; 'yourself': 0.78; '80%': 0.84; 'complex,': 0.84; 'glance': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Peter Otten <__peter__@web.de>
Subject Re: Useful module to be written by a newbie
Date Wed, 29 Apr 2015 18:27:59 +0200
Organization None
References <87y4lbasvf.fsf@Equus.decebal.nl>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Gmane-NNTP-Posting-Host p57bd8d27.dip0.t-ipconnect.de
User-Agent KNode/4.13.3
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.88.1430324895.3680.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1430324895 news.xs4all.nl 2882 [2001:888:2000:d::a6]:49268
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:89558

Show key headers only | View raw


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/CecilWesterhof/PythonLibrary
> 
> Anyone an idea about functions and classes that would be useful for
> the Python community and could be written by me?

Realistically a Python coder with a little experience will have a glance at 
your code and run away.

But: a family member, or friend, or even you yourself with a small real-
world problem will not care whether your code is idiomatic Python as long as 
it works as advertised. So I'd look that way.

As you idle along you'll quickly get better and may encounter a library 
where you think "That might be a useful extension" or one where you think 
"That's much too complex, I can make it simpler for 80% of the use cases". 

VoilĂ  your contributions to the community.


PS: Regarding your MovingAverage class, have a look at zip(), generators or 
the __iter__() method, and -- most important -- unit tests.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Useful module to be written by a newbie Cecil Westerhof <Cecil@decebal.nl> - 2015-04-29 16:53 +0200
  Re: Useful module to be written by a newbie Peter Otten <__peter__@web.de> - 2015-04-29 18:27 +0200
    Re: Useful module to be written by a newbie Cecil Westerhof <Cecil@decebal.nl> - 2015-04-29 19:12 +0200
      Re: Useful module to be written by a newbie Peter Otten <__peter__@web.de> - 2015-04-29 21:03 +0200
        Re: Useful module to be written by a newbie Cecil Westerhof <Cecil@decebal.nl> - 2015-04-29 22:47 +0200
          Re: Useful module to be written by a newbie Peter Otten <__peter__@web.de> - 2015-04-30 00:00 +0200
          Re: Useful module to be written by a newbie Michael Welle <mwe012008@gmx.net> - 2015-05-09 08:10 +0200
            Re: Useful module to be written by a newbie Cecil Westerhof <Cecil@decebal.nl> - 2015-05-09 10:28 +0200
              Re: Useful module to be written by a newbie Michael Welle <mwe012008@gmx.net> - 2015-05-09 11:43 +0200
      Re: Useful module to be written by a newbie Ian Kelly <ian.g.kelly@gmail.com> - 2015-04-29 13:40 -0600

csiph-web