Deutsch English Français Italiano |
<mailman.67.1716996947.2909.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Grant Edwards <grant.b.edwards@gmail.com> Newsgroups: comp.lang.python Subject: Re: Flubbed it in the second interation through the string: range error... HOW? Date: Wed, 29 May 2024 11:35:46 -0400 (EDT) Lines: 15 Message-ID: <mailman.67.1716996947.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> <4VqD421mhcznWHd@mail.python.org> X-Trace: news.uni-berlin.de Hc0RzayoW/PG5xjokXTstAN73Wvlc4djh8ps4+ac73cQ== Cancel-Lock: sha1:mFpPU0DPIRGhwBGngk7IpJG18ZA= sha256:Q8dMF7uMcsS7xULQHOlQJVPcbpunbMqDBLTX/TPCTXw= Return-Path: <grant.b.edwards@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.057 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'angelico': 0.09; 'general,': 0.09; 'from:addr:grant.b.edwards': 0.16; 'from:name:grant edwards': 0.16; 'mats': 0.16; 'releases': 0.16; 'subject:second': 0.16; 'subject:string': 0.16; 'wichmann': 0.16; 'wrote:': 0.16; 'grant': 0.17; 'to:addr:python-list': 0.20; '>>>': 0.28; 'chris': 0.28; 'header:User-Agent:1': 0.30; 'python-list': 0.32; 'from:addr:gmail.com': 0.35; 'really': 0.37; "it's": 0.37; 'hard': 0.37; 'block': 0.39; 'should': 0.40; 'come': 0.62; 'message-id:invalid': 0.68; 'subject:through': 0.69; 'miss.': 0.84; 'out...': 0.84; 'subject: \n ': 0.84; 'thing?': 0.84 User-Agent: slrn/1.0.3 (Linux) 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: <4VqD421mhcznWHd@mail.python.org> 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> <5fad0ede-41ec-4a76-94fe-299418cd72d0@wichmann.us> Bytes: 3377 On 2024-05-29, Mats Wichmann via Python-list <python-list@python.org> wrote: > 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. I really should make a habit of reading through the "what's new" pages when new releases come out... -- Grant