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


Groups > comp.lang.python > #109918

Re: Overriding methods inherited from a superclass with methods from a mixin

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Michael Selik <michael.selik@gmail.com>
Newsgroups comp.lang.python
Subject Re: Overriding methods inherited from a superclass with methods from a mixin
Date Tue, 14 Jun 2016 00:13:38 +0000
Lines 20
Message-ID <mailman.48.1465863236.2288.python-list@python.org> (permalink)
References <2a1088f1-3bdb-4b21-80b5-8cc640d3bceb@googlegroups.com> <a975a796-3e65-4d0b-99ad-c5e4d196685e@googlegroups.com> <CAGgTfkOmgyKonQa2nQc2-j71OMygG3a8twUNrA9v3VD3J9yf5A@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de IAB0zqmU5V698qXJHFxSwgXHfpm8iDGkGoqoEWNPHGJA==
Return-Path <michael.selik@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.052
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; 'python,': 0.02; 'funny,': 0.09; 'subject: \n ': 0.15; '2016': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'email addr:gmail.com&gt;': 0.18; 'to:2**1': 0.21; 'saying': 0.22; 'code.': 0.23; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'to:no real name:2**1': 0.27; 'message- id:@mail.gmail.com': 0.27; '13,': 0.29; 'url:wikipedia': 0.29; 'url:wiki': 0.30; 'posts': 0.30; 'posting': 0.32; 'getting': 0.33; 'class': 0.33; 'quickly': 0.34; 'received:google.com': 0.35; 'authors': 0.35; 'important.': 0.35; 'comment': 0.35; 'but': 0.36; 'should': 0.36; 'url:org': 0.36; 'possible.': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'received:209': 0.38; 'wrong': 0.38; 'url:en': 0.39; 'subject:from': 0.39; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'making': 0.62; 'more': 0.63; 'youth': 0.66; 'conversation': 0.84; 'textbook': 0.84; 'mistakes': 0.95; 'fight': 0.97
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=JDgREN1Nou0FBrbIV/sItGR5csaCoHJ2H725l0DrR/o=; b=B/wOl48k/llKa7FuS5bnD4Kr+/CIlENufoQkMA3i80eI7fYHjOKEw8HLNE/G40QoV3 aJxLis6GzjnByc0hjFwpgQv59GBuRm9Mxur6vV2GABtk6LsCU74zHHdgYgG6i380wHRI Mxl/Aot0uJhGZxyiKr1FyScKQnFok2qlP8R3/jxIs6ivm6UMl41JfivRwGuofqVR6FsI 4vUDfkzCq+Mc3T4wZRifpqXnWDo81ShhMmpZ0gB8Ys8p637WIZzodDleTOeh48v4G0KW Y7+g5pjLhMwRAy12e25XVF0vMweOjXjjJL9zVbanVRYK6RWTO/zZm6XRSan8V7WfCAYt wKiw==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=JDgREN1Nou0FBrbIV/sItGR5csaCoHJ2H725l0DrR/o=; b=fQEf2LdkDOIULcOWsNXJLCRGWKGwU7CBIWHixJTfXPfYuiE8JYnYeJjkYAOboev+HM 9nDzkmNULpKtBARYZTrjXqmGJra/h8BQAzkoi675dGaFtHv2JnDG5h+5hH28iWu89b6F bmF8RmAbZSqWq8MA54OeeZd6vsU9oypAg86K5r7RCZcwNjF77rGDtEb57KhnNKKpiQo+ ykcymGx63CmZUL+gVQx7zPSFmFg6rD6vzIZ2TAFpHbDhTJUg+MNoKx9wDWN+a+SVo3E3 3lo9gWGkmw0Ul41MLa+OXI01wsh2R2sHX2r/jbzc/WgsGzDEwZIHrE1zAsd3Ou9S5Fi7 8z1Q==
X-Gm-Message-State ALyK8tLylhDjfpYUkMoVkKiApdNcDv4e0kX+DxoVfj6mQU5KC2uzLpENBWvK480+b4EMvGxd/LiwVvHqa2lcdg==
X-Received by 10.140.106.228 with SMTP id e91mr16481357qgf.75.1465863227552; Mon, 13 Jun 2016 17:13:47 -0700 (PDT)
In-Reply-To <a975a796-3e65-4d0b-99ad-c5e4d196685e@googlegroups.com>
X-Content-Filtered-By Mailman/MimeDel 2.1.22
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 <CAGgTfkOmgyKonQa2nQc2-j71OMygG3a8twUNrA9v3VD3J9yf5A@mail.gmail.com>
X-Mailman-Original-References <2a1088f1-3bdb-4b21-80b5-8cc640d3bceb@googlegroups.com> <a975a796-3e65-4d0b-99ad-c5e4d196685e@googlegroups.com>
Xref csiph.com comp.lang.python:109918

Show key headers only | View raw


On Mon, Jun 13, 2016 at 7:46 PM <alanqueiros@gmail.com> wrote:

> I ... am making an effort to get used to the rtl order as quickly as
> possible.
>

Funny, you keep saying right-to-left. I think the issue is you think the
parent class is more important. Fight the power! Youth revolt! In Python,
the children are in control. Now you can read it left-to-right, as is
natural.

I feel somewhat bad about posting these links
>

The StackOverflow answer had an upvoted comment that the BaseRequest should
be written after the Mixins. The two blog posts read like conversation
starters. I don't think the authors intended to write model code.

A famous textbook getting it wrong would be more interesting. But even
Knuth makes mistakes (https://en.wikipedia.org/wiki/Knuth_reward_check).

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


Thread

Overriding methods inherited from a superclass with methods from a mixin alanqueiros@gmail.com - 2016-06-12 20:55 -0700
  Re: Overriding methods inherited from a superclass with methods from a mixin dieter <dieter@handshake.de> - 2016-06-13 09:13 +0200
  Re: Overriding methods inherited from a superclass with methods from a mixin Peter Otten <__peter__@web.de> - 2016-06-13 09:59 +0200
  Re: Overriding methods inherited from a superclass with methods from a mixin Ian Kelly <ian.g.kelly@gmail.com> - 2016-06-13 07:17 -0600
  Re: Overriding methods inherited from a superclass with methods from a mixin Michael Selik <michael.selik@gmail.com> - 2016-06-13 17:32 +0000
  Re: Overriding methods inherited from a superclass with methods from a mixin alanqueiros@gmail.com - 2016-06-13 11:42 -0700
    Re: Overriding methods inherited from a superclass with methods from   a mixin Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-06-14 10:28 +1200
    Re: Overriding methods inherited from a superclass with methods from a mixin Michael Selik <michael.selik@gmail.com> - 2016-06-13 22:50 +0000
  Re: Overriding methods inherited from a superclass with methods from a mixin alanqueiros@gmail.com - 2016-06-13 16:44 -0700
    Re: Overriding methods inherited from a superclass with methods from a mixin Michael Selik <michael.selik@gmail.com> - 2016-06-14 00:13 +0000

csiph-web