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


Groups > comp.lang.python > #108813

Re: Resources/pointers for writing maintable, testable Python

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Resources/pointers for writing maintable, testable Python
Date Thu, 19 May 2016 13:47:15 +1000
Lines 35
Message-ID <mailman.30.1463629642.27390.python-list@python.org> (permalink)
References <CA+yM-qbQSUKy8f3K1OF0-ON0mU7UugPLVnSkxXENkFes2SYQkA@mail.gmail.com> <85posic1cy.fsf@benfinney.id.au> <mailman.24.1463619373.27390.python-list@python.org> <af2ce1fc-6162-4582-86ee-eae77ffc058a@googlegroups.com> <CAPTjJmoYz0S1FV9m5JteV9WqbHPxN_dRZe0PJvAghE6M7GDcxQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 3d67Pi2pInJpAzZmAKRVrAY91muSK9mvrcQmEcl9uBQg==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.05; '(of': 0.07; 'important,': 0.07; 'url:pycon': 0.08; 'cc:addr :python-list': 0.09; 'implies': 0.09; 'porting': 0.09; 'python': 0.10; ':-)': 0.12; '2.7': 0.13; 'thursday,': 0.13; 'thu,': 0.15; '2016': 0.16; "chris'": 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'in;': 0.16; 'opposite': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:writing': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'versions': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; '3.x': 0.22; 'ok.': 0.22; 'bigger': 0.23; 'written': 0.24; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'linux': 0.26; 'message- id:@mail.gmail.com': 0.27; 'era': 0.29; 'staying': 0.29; 'usable': 0.29; 'subject:/': 0.30; 'books': 0.30; 'code': 0.30; 'certainly': 0.30; 'probably': 0.31; 'anyone': 0.32; 'older': 0.32; 'getting': 0.33; 'point': 0.33; 'url:python': 0.33; 'jump': 0.33; 'though.': 0.33; 'advice': 0.35; 'received:google.com': 0.35; 'newer': 0.35; 'quite': 0.35; 'received:74.125.82': 0.35; "isn't": 0.35; 'but': 0.36; 'there': 0.36; 'projects.': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; "won't": 0.38; 'stuff': 0.38; 'someone': 0.38; 'end': 0.39; 'where': 0.40; 'still': 0.40; 'some': 0.40; 'making': 0.62; 'is.': 0.63; 'today': 0.65; 'differences': 0.66; 'fact,': 0.67; 'today.': 0.67; 'worth': 0.67; '1980s': 0.84; '3.6': 0.84; 'chrisa': 0.84; 'forward.': 0.84; 'misses': 0.84; 'reading,': 0.84; 'url:2007': 0.84; 'utc+5:30,': 0.84; 'to:none': 0.91; 'cost,': 0.91; 'have.': 0.93; 'suffer': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=UePD9nKeBtvgCBBXUHVEwfMRe5noZdCpzQ9Q/il3LO4=; b=fO+N5Y4M/UQYzR/zTCNh4tOWhqEpLF8RFwpRANrvbL+VOf7bYSxnQtuopSQJwdhQSF 7+jTqhQoNrZYx1lmgHZW2ay7v1rPNzgVaBDssP2uVIZp0f8+Pg5hTgqh4MR3AZIS36KC j9fleO1RylgIuNDGZy4OevxifZXfBlNlPZelDQVOwCK4h/Z1RiFCpcGu7zobKYgEJekC iLJ8c9rrc/L4EkcrJoU/p0oaRd2aCBjBlmQIp3Or+x8U2faodZ93pfAnkaOgfZM0hLlC 0DXM0C/rQnTbJAR2VXqFVMyofziDuDhALfvItjzxmcJDzW9cGhmW+3snah9Vt3RUPhpB 2dTg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=UePD9nKeBtvgCBBXUHVEwfMRe5noZdCpzQ9Q/il3LO4=; b=QHXLJfXwOV5At2MaJvG/e9AquUGO625DBdDn9iqHvPjpbtbKKltnvPC734VKlXmJZs Zvg0IFWz/Utnrs3nX4d3Ynwl60DnCr3k0Sjl3EUZnRLJOHbWAvABuB0EP10oiX+gtT/G saW3nZnLjeuDvVYNI3xW4ZXZmjaXUFEV/Yob4fc6MHMN6BsPVGILuY4Uelh3rDFF3x2R os+/7W0ddfhfF51Y/J72GlqgfAVEsGcbuOAniDIXSQAcpr+T0LdkxBPbgESzqVjwF1IY zr4jlxtwSaipbHt7Mvph4SXF015XzByBi4dfgEe3Z3aKJ8PL96CNbi9LN+85etGED8CS 4pWQ==
X-Gm-Message-State AOPr4FXGXSH7KYLFQIM4+qNm/gumN49fDNpMyx/rriTctvLI1ORw5b6uKtv5VfEGO0LqSB7k2UAxoXRecE6M5Q==
X-Received by 10.194.86.129 with SMTP id p1mr10608684wjz.117.1463629635577; Wed, 18 May 2016 20:47:15 -0700 (PDT)
In-Reply-To <af2ce1fc-6162-4582-86ee-eae77ffc058a@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
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>
X-Mailman-Original-Message-ID <CAPTjJmoYz0S1FV9m5JteV9WqbHPxN_dRZe0PJvAghE6M7GDcxQ@mail.gmail.com>
X-Mailman-Original-References <CA+yM-qbQSUKy8f3K1OF0-ON0mU7UugPLVnSkxXENkFes2SYQkA@mail.gmail.com> <85posic1cy.fsf@benfinney.id.au> <mailman.24.1463619373.27390.python-list@python.org> <af2ce1fc-6162-4582-86ee-eae77ffc058a@googlegroups.com>
Xref csiph.com comp.lang.python:108813

Show key headers only | View raw


On Thu, May 19, 2016 at 1:31 PM, Rustom Mody <rustompmody@gmail.com> wrote:
> On Thursday, May 19, 2016 at 6:26:26 AM UTC+5:30, Ben Finney wrote:
>> Code Like A Pythonista was written in the Python 2 era
>> <http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html>
>> but is still excellent advice today.
>
>
> If <link> is python-2 and still the best excellent advice today
> doesn't it go somewhat counter to pyhthon-2 is a dead-end ?? :-)

Nope. Py2 is a dead end because it isn't moving forward. It's staying
right where it is. There can certainly be advice written about Python
2 that is worth reading, though. In fact, I have some books written
about REXX on OS/2 which I would recommend to someone learning Python
on Linux. I probably have some books from the 1980s that are still
worth reading. (Software books older than that won't be on my shelf,
but quite likely do exist.)

> Need to point this out since the opposite case to Chris'
> "switch to 3 or else suffer in hell..." needs to be articulated:

That is not my stance. Python 2 is still usable - it just isn't moving forward.

> Python-3 is nice but 2 is ok. The diffs are not such a big deal

The differences are getting to be a bigger and bigger deal. I wouldn't
advise anyone to use Python 2.4 unless compatibility with Red Hat
Enterprise Linux 5, because 2.4 misses out on heaps of stuff that
newer versions have. It's the same with 2.7 - use it if compatibility
with systems without 3.x is important, otherwise use the latest. (Of
course, that's new projects. Existing code implies a porting cost,
which has to be factored in; but making the jump to 3.5 or 3.6 is well
worth it IMO.)

ChrisA

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


Thread

Re: Resources/pointers for writing maintable, testable Python Ben Finney <ben+python@benfinney.id.au> - 2016-05-19 10:55 +1000
  Re: Resources/pointers for writing maintable, testable Python Rustom Mody <rustompmody@gmail.com> - 2016-05-18 20:31 -0700
    Re: Resources/pointers for writing maintable, testable Python Chris Angelico <rosuav@gmail.com> - 2016-05-19 13:47 +1000
      Re: Resources/pointers for writing maintable, testable Python DFS <nospam@dfs.com> - 2016-05-19 08:56 -0400
    Re: Resources/pointers for writing maintable, testable Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-05-19 13:56 +1000
      Re: Resources/pointers for writing maintable, testable Python Rustom Mody <rustompmody@gmail.com> - 2016-05-18 21:03 -0700

csiph-web