Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"Gravitation cannot be held responsible for people falling in love." -- Albert Einstein


devel / comp.lang.python / Re: Odd types.get_original_bases() behavior for classes with generic bases but no type arguments

SubjectAuthor
o Odd types.get_original_bases() behavior for classes with genericChris Bouchard

1
Re: Odd types.get_original_bases() behavior for classes with generic bases but no type arguments

<mailman.193.1690254652.23016.python-list@python.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=23825&group=comp.lang.python#23825

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: chris@upliftinglemma.net (Chris Bouchard)
Newsgroups: comp.lang.python
Subject: Re: Odd types.get_original_bases() behavior for classes with generic
bases but no type arguments
Date: Mon, 24 Jul 2023 23:10:38 -0400
Lines: 13
Message-ID: <mailman.193.1690254652.23016.python-list@python.org>
References: <CAFmgF4VuXLP3NAyShRcODftcayiysO3A3Dq=yy-ufLEcFk-cuw@mail.gmail.com>
<CAFmgF4UkEAWHB=WqfpgpKgRGqe5c0uAbJY=x7oqDCj5OYNoGrg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de xCJCmjncOyV/dvksancqXAODgv2FKV3x8sS/NAVJI0vw==
Cancel-Lock: sha1:0BZXlv986zxcUENXXyAFd6GAOrA= sha256:FlYZpuR/36oQg7c2k6HOpgaVcZwlm99eadpJFBPMrdE=
Return-Path: <javajunkie314@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.102
X-Spam-Level: *
X-Spam-Evidence: '*H*': 0.82; '*S*': 0.02; 'received:209.85.219':
0.09; 'subject:but': 0.09; 'though.': 0.09; 'memory': 0.15;
'sorry,': 0.16; 'subject:() ': 0.16; 'to:addr:python-list': 0.20;
'>>>': 0.28; 'chris': 0.28; "doesn't": 0.32; 'message-
id:@mail.gmail.com': 0.32; 'subject:for': 0.33; 'header:In-Reply-
To:1': 0.34; 'received:google.com': 0.34; 'thanks,': 0.36;
'change': 0.36; 'received:209.85': 0.37; 'received:209': 0.39;
'should': 0.40; 'from:addr:chris': 0.69; '(first,': 0.84;
'subject: \n ': 0.84; 'subject:behavior': 0.84; 'subject:type':
0.91
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1690254650; x=1690859450;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=dx3VwrTyjDftsSI9pu3xJCT5w3Et/IV8BUCqukXHKzQ=;
b=Jqim5BS+T3Clso+uEHN3YPKZPkviP+qrh03I7VP8PkoeBIGGUfsP7DNQSCRCbKbBcG
AMcsOHPr+W8GQN7230WaurnKLEGu+xFkcajTApk3RDbZ74I9sXRetfO/ZAoaWiJBjbf0
Qx+1tclaOyAoFDYcF4/ltJUnAwo+BGiniD85ppT9WNjUGltNNzBpyrenhn3KJmAjOZVs
/IuoEew/hIJ8g+i30hyJI7gt9SJ0Z0DOe7IV5X7jXqBoqFLBKP6KqgpiccXutN1xRjGd
3W5ZiDxiD9mwVsBfPTrdMdFnhiSfUq6lTXRNAfnRmh9w9iqYozUZjhpx/QbZvXRODrlL
kwNw==
X-Gm-Message-State: ABy/qLajn9sgd1WcooevlS/faTMAiPT/oRQSmk4NoJX5kSJQtvgSUzgT
Uea3wlDvZQVdKFaEv27CURk7U1go1Rzw/A==
X-Google-Smtp-Source: APBJJlHePDUpN3ZdM+PwNmLAeIrOaHAmKrLV5kuGkIEnTwFzwn4IFQXRcpjJpt0Ld7MHEc5AlVfuCA==
X-Received: by 2002:a0d:d646:0:b0:577:1909:ee16 with SMTP id
y67-20020a0dd646000000b005771909ee16mr11917856ywd.30.1690254649938;
Mon, 24 Jul 2023 20:10:49 -0700 (PDT)
X-Received: by 2002:a25:50e:0:b0:d0e:8b3b:1e0d with SMTP id
14-20020a25050e000000b00d0e8b3b1e0dmr5768886ybf.15.1690254649121; Mon, 24 Jul
2023 20:10:49 -0700 (PDT)
In-Reply-To: <CAFmgF4VuXLP3NAyShRcODftcayiysO3A3Dq=yy-ufLEcFk-cuw@mail.gmail.com>
X-Gmail-Original-Message-ID: <CAFmgF4UkEAWHB=WqfpgpKgRGqe5c0uAbJY=x7oqDCj5OYNoGrg@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
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: <https://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: <CAFmgF4UkEAWHB=WqfpgpKgRGqe5c0uAbJY=x7oqDCj5OYNoGrg@mail.gmail.com>
X-Mailman-Original-References: <CAFmgF4VuXLP3NAyShRcODftcayiysO3A3Dq=yy-ufLEcFk-cuw@mail.gmail.com>
 by: Chris Bouchard - Tue, 25 Jul 2023 03:10 UTC

> >>> Example.__bases__
> (First, Second)

Sorry, that should have been

>>> Example.__bases__
(<class '__main__.First'>, <class '__main__.Second'>)

That's what I get for writing an example from memory rather than copying it from
a REPL session. It doesn't change the point I wanted to make, though.

Thanks,
Chris Bouchard


devel / comp.lang.python / Re: Odd types.get_original_bases() behavior for classes with generic bases but no type arguments

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor