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


Groups > comp.lang.python > #107835

Re: Pythonic style

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Pythonic style
Date Fri, 29 Apr 2016 10:57:11 +1000
Lines 17
Message-ID <mailman.216.1461891434.32212.python-list@python.org> (permalink)
References <5720357B.4060009@icloud.com> <CALwzidn0SN5yax3bfmTPDTxBvfr+bnVNzeUe3dZYrS9ji2WCtw@mail.gmail.com> <572166FA.3020108@icloud.com> <85y47yjxj5.fsf_-_@benfinney.id.au> <57217E73.9040907@icloud.com> <572188F8.7010304@stoneleaf.us> <CAPTjJmrkELf4rb+1UgmPwHxmd+wzp6WLxxN+ut4L3xJuHhmqmA@mail.gmail.com> <mailman.168.1461815768.32212.python-list@python.org> <c7ca7770-7dfa-463c-b776-cab472d9f79e@googlegroups.com> <540fc958-52d6-6049-75f2-5ee42657688e@mrabarnett.plus.com> <mailman.183.1461842191.32212.python-list@python.org> <dofpa7Fpm7eU1@mid.individual.net> <CAPTjJmoyOBA=sEk=4W2uBLJDSwkEKK1tWscU2b1sNtxDNHn1Mg@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de tDBluNenwmds/vsGAobwmw1sODqPifYggbf1jEliS4TQ==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'received:209.85.223': 0.03; 'mrab': 0.05; 'cc:addr:python-list': 0.09; '+1.': 0.16; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'gregory': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'python?': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'meant': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'sense': 0.26; 'fri,': 0.27; 'message-id:@mail.gmail.com': 0.27; '[1]': 0.32; 'maybe': 0.33; 'received:google.com': 0.35; 'something': 0.35; 'lines': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'thought': 0.37; 'received:209': 0.38; 'along': 0.39; 'of:': 0.66; 'chrisa': 0.84; 'found?': 0.84; 'worthy': 0.84; 'zen': 0.84; 'to:none': 0.91
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=PimjPuspi9BtWLojtuM6HRti89RZwMNflUDNDnNF+XA=; b=iXRg0bluIqw/5KueFbB9JtlAvspsAGMNfzZOzX5UaxNk/ND09u3iG66qrEpGVYU7xo kcB6ysB+ndyu/4mrpIWNoMhGT4fQpri54sYxxn0ZA0oWQ2JjE82KN5um0fngOKk4R4vu wrVpcnWZFktBht6KKD+66izou7FEb79LDdCy6jBrn6A9/Re1i5phNFNofn0UDDHZBLaX OtpeID0zdiJbpYomUSitS6AhZms6ndPNMGdO4JE5OjL2MWwzsNjFs84ig6dzXljIx55N ohkAvuXbMbFEBjNqSF0JO2+0+UTE0ZeMzjmeFdArShvFd3oIQMsmzyikAIkWzpdk+gr8 Z9sQ==
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=PimjPuspi9BtWLojtuM6HRti89RZwMNflUDNDnNF+XA=; b=gCbJIEktig1v1lcrRrd1X+sarw0NkVJcRO9p4/2xgqa/suj8DCWa2zz5ATnbjaLbDu Ze5R8Mruk8795RkXkzDm8eGlOpS0/gXG53woCZL2NedGkqwb5hHL21i1ODeG/oV7ugm8 eViJWm/1WqEsQuvwxzDA6LclaPrXq17//PyjbO64hM/R/w1JEwHlfH4xikel3KwM8kAm Itc2+sGBsjEWutO/5dWv/FkCqvlixa2p29zYg6aNEm3v/a/1EKrTDn6jSathVy/HFsi+ y/vsnqc3xnw/VAScPvk0u8Iq7ayd8SGI+hM+uQ0lQgKI2gtXqB0cV+2uFrlGJ8hKzCZC B8Mw==
X-Gm-Message-State AOPr4FWPy0LxChJQfVIonvf3ZOF1Yn1xTkomDBStjM5rQtrYOQGnCOTYIylQTbH4wD7c7gIXglNx2xzkUT5L2Q==
X-Received by 10.107.137.166 with SMTP id t38mr21354692ioi.31.1461891431717; Thu, 28 Apr 2016 17:57:11 -0700 (PDT)
In-Reply-To <dofpa7Fpm7eU1@mid.individual.net>
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 <CAPTjJmoyOBA=sEk=4W2uBLJDSwkEKK1tWscU2b1sNtxDNHn1Mg@mail.gmail.com>
X-Mailman-Original-References <5720357B.4060009@icloud.com> <CALwzidn0SN5yax3bfmTPDTxBvfr+bnVNzeUe3dZYrS9ji2WCtw@mail.gmail.com> <572166FA.3020108@icloud.com> <85y47yjxj5.fsf_-_@benfinney.id.au> <57217E73.9040907@icloud.com> <572188F8.7010304@stoneleaf.us> <CAPTjJmrkELf4rb+1UgmPwHxmd+wzp6WLxxN+ut4L3xJuHhmqmA@mail.gmail.com> <mailman.168.1461815768.32212.python-list@python.org> <c7ca7770-7dfa-463c-b776-cab472d9f79e@googlegroups.com> <540fc958-52d6-6049-75f2-5ee42657688e@mrabarnett.plus.com> <mailman.183.1461842191.32212.python-list@python.org> <dofpa7Fpm7eU1@mid.individual.net>
Xref csiph.com comp.lang.python:107835

Show key headers only | View raw


On Fri, Apr 29, 2016 at 10:48 AM, Gregory Ewing
<greg.ewing@canterbury.ac.nz> wrote:
> MRAB wrote:
>
>> Is it worthy of being in the Zen of Python?
>
>
> +1. Maybe something along the lines of:
>
>    Dunder methods are for defining, not calling.
>    Unless you're a dunderhead[1].
>
> [1] Meant in the sense of an enthusiast, cf. gearhead.

I thought the twentieth zen would never be found?

ChrisA

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


Thread

Re: Pythonic style Chris Angelico <rosuav@gmail.com> - 2016-04-28 13:56 +1000
  Re: Pythonic style Rustom Mody <rustompmody@gmail.com> - 2016-04-27 22:16 -0700
    Re: Pythonic style MRAB <python@mrabarnett.plus.com> - 2016-04-28 12:16 +0100
      Dunder docs again (was Pythonic style) Rustom Mody <rustompmody@gmail.com> - 2016-04-28 04:45 -0700
        Re: Dunder docs again (was Pythonic style) MRAB <python@mrabarnett.plus.com> - 2016-04-28 13:02 +0100
          Re: Dunder docs again (was Pythonic style) Marko Rauhamaa <marko@pacujo.net> - 2016-04-28 15:25 +0300
            Re: Dunder docs again (was Pythonic style) MRAB <python@mrabarnett.plus.com> - 2016-04-28 14:22 +0100
      Re: Pythonic style Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-04-29 12:48 +1200
        Re: Pythonic style Chris Angelico <rosuav@gmail.com> - 2016-04-29 10:57 +1000
          Re: Pythonic style Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-04-29 18:12 +1200
            Re: Pythonic style Chris Angelico <rosuav@gmail.com> - 2016-04-29 16:45 +1000
        Re: Pythonic style Steven D'Aprano <steve@pearwood.info> - 2016-04-29 19:59 +1000
    Re: Pythonic style Random832 <random832@fastmail.com> - 2016-04-28 09:31 -0400

csiph-web