Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #121: halon system went off and killed the operators.


comp / comp.lang.python / Re: Flubbed it in the second interation through the string: range error... HOW?

SubjectAuthor
o Re: Flubbed it in the second interation through the string: range error... HOW?Mats Wichmann

1
Subject: Re: Flubbed it in the second interation through the string: range error... HOW?
From: Mats Wichmann
Newsgroups: comp.lang.python
Date: Wed, 29 May 2024 14:05 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: mats@wichmann.us (Mats Wichmann)
Newsgroups: comp.lang.python
Subject: Re: Flubbed it in the second interation through the string: range
error... HOW?
Date: Wed, 29 May 2024 08:05:51 -0600
Lines: 9
Message-ID: <mailman.63.1716991562.2909.python-list@python.org>
References: <28615cd5-5b77-44bb-ba3a-5ce6cad7c943@tompassin.net>
<ZlbCr8Bv1sV6fjzN@cskk.homeip.net>
<CAPTjJmrnw51BDHrY25hcSzH6-R+pwSSyHf6yOrDa=4iFQm4EPg@mail.gmail.com>
<4Vq9zv5ZDhznVH3@mail.python.org>
<5fad0ede-41ec-4a76-94fe-299418cd72d0@wichmann.us>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de uBCXqnAaIFf6zuA7ViZDoQ2tR4VYc0faQjXWNaeKzoYw==
Cancel-Lock: sha1:rCNTvEbkUfScx/AiMFhKGPntyUc= sha256:bafgqBrr6tF40LowU01FfJWd8TzQ3tIxJGQAnww38w0=
Return-Path: <mats@wichmann.us>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=pobox.com header.i=@pobox.com header.b=IrWceT0z;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.090
X-Spam-Evidence: '*H*': 0.84; '*S*': 0.02; 'angelico': 0.09;
'general,': 0.09; 'received:64.147': 0.16; 'subject:second': 0.16;
'subject:string': 0.16; 'wrote:': 0.16; 'grant': 0.17; 'to:addr
:python-list': 0.20; 'chris': 0.28; 'header:User-Agent:1': 0.30;
'python-list': 0.32; 'header:In-Reply-To:1': 0.34; "it's": 0.37;
'hard': 0.37; 'received:192.168': 0.37; 'block': 0.39;
'received:64': 0.67; 'subject:through': 0.69; 'miss.': 0.84;
'subject: \n ': 0.84; 'thing?': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id
:date:mime-version:subject:to:references:from:in-reply-to
:content-type:content-transfer-encoding; s=sasl; bh=bxYLOM0FYJEA
M28LzlXaa7Je/Nuwcw1jd1+MuytOjDg=; b=IrWceT0zwxXvVbT3pdYCNaNRUmdh
xB/lI7cvRrlfcY8w+e8PK+etye8UE814V1f+jlXZSYejkgJsp/8Lh9spxBTi+/78
ykH8CEkaYHIIAhlZuG2pRLse1psVTFzEayPop6iwUtQK6KxoaV8ORFRg+7m/wahu
QYenvWvPxgzXswQ=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=wichmann.us;
h=message-id:date:mime-version:subject:to:references:from:in-reply-to:content-type:content-transfer-encoding;
s=2018-07.pbsmtp; bh=bxYLOM0FYJEAM28LzlXaa7Je/Nuwcw1jd1+MuytOjDg=;
b=Vo7gagMDFIOau+Y3t2ovBfupNA4RrX9NsQ8KQU8kTUj54C9R1PbpsqcQBUpqzvTKOOg7FiZXFVgz08FkusB6FWQ8kYlmcaaXt+nAxLRaCoaCz1LYmflgZVRgiMl0NQfPxMQiz/0AC2pH9VpeDngboM+uD+Q05IqtoGCaQQX2leg=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Autocrypt: addr=mats@wichmann.us; keydata=
xsDiBD9xp6oRBAC1vd3YI8Gcr1CxpV1gldNQu0uQsNaICDk+Ai3+R163s/P83JOYG+SBEA3P
v7iZx70qpQ3RzP7KrjF1Nm6j0em9ccUX2fPQU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MgAAJ9INTqcLSJrOfyJ8q95nBO1T26H2Q==
In-Reply-To: <4Vq9zv5ZDhznVH3@mail.python.org>
X-Pobox-Relay-ID: 8F2734C4-1DC4-11EF-8A2E-78DCEB2EC81B-81526775!pb-smtp1.pobox.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: <5fad0ede-41ec-4a76-94fe-299418cd72d0@wichmann.us>
X-Mailman-Original-References: <28615cd5-5b77-44bb-ba3a-5ce6cad7c943@tompassin.net>
<ZlbCr8Bv1sV6fjzN@cskk.homeip.net>
<CAPTjJmrnw51BDHrY25hcSzH6-R+pwSSyHf6yOrDa=4iFQm4EPg@mail.gmail.com>
<4Vq9zv5ZDhznVH3@mail.python.org>
View all headers

On 5/29/24 08:02, Grant Edwards via Python-list wrote:
> On 2024-05-29, Chris Angelico via Python-list <python-list@python.org> wrote:
>
>> print(f"if block {name[index]=} {index=}")
>
> Holy cow! How did I not know about the f-string {=} thing?
>

It's more recent than f-strings in general, so it's not that hard to miss.

1

rocksolid light 0.9.8
clearnet tor