Sujet : Re: Flubbed it in the second interation through the string: range error... HOW?
De : grant.b.edwards (at) *nospam* gmail.com (Grant Edwards)
Groupes : comp.lang.pythonDate : 29. May 2024, 16:35:46
Autres entêtes
Message-ID : <mailman.67.1716996947.2909.python-list@python.org>
References : 1 2 3 4 5 6
User-Agent : slrn/1.0.3 (Linux)
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