Why does Python even allow this? Chained comparison jank.
Python allows multiple comparisons chained together in the same expression. They have their uses, but the chaining can become confusing when operators of different types are mixed. Why is it that less than and greater than are allowed to be chained together? I think this is confusing and should potentially even be removed from Python.
― mCoding with James Murphy ()
Source code:
Chained comparison docs:
PEP to expand chained comparison:
SUPPORT ME ⭐
---------------------------------------------------
Sign up on Patreon to get your donor role and early access to videos!
Feeling generous but don’t have a Patreon? Donate via PayPal! (No sign up needed.)
Top patrons and donors: Laura M, Jameson, John Martin, Vahnekie, Pieter G, Sigmanificient
AFFILIATES AND REFER
4 views
23
25
1 month ago 00:25:19 1
Существа в открытом космосе возможны? / Большой Взрыв наоборот / Астрообзор #169
1 month ago 00:06:30 1
Leadstal vs. Leads Sniper: Which Email Extractor REALLY Gets the Job Done? 😎
1 month ago 00:39:19 1
Historian Answers Witchcraft Questions | Tech Support | WIRED
2 months ago 00:11:22 1
Japanese Special Forces Soldier Battles On Kursk Frontline For Russia
2 months ago 00:39:35 1
He QUIT CHESS for college, now he’s TOP 8! WEI YI Podcast
2 months ago 00:03:05 1
Jeorgia Rose - Undertone (Official Music Video)
2 months ago 00:25:40 2
RARE EVENT FINDER | Hospital 666 - Part 3
2 months ago 00:10:47 1
Why A Record Number of CEOs Are “Resigning“
2 months ago 00:02:40 1
Traffic warden in Lewisham threatened a man without knowing he was on camera #viral #Lewisham
2 months ago 01:21:46 1
Humanity’s Effect On Nature | Documentary
2 months ago 00:21:14 1
Can You Beat Baldur’s Gate 3 While Locked In First Person PoV?
2 months ago 00:00:58 1
Does ROSÉ & Bruno Mars’ “APT.” Sound Familiar? 🍾🤔 #rosé #brunomars #music
2 months ago 00:13:47 1
2002 GP MOTOCROSS 250 MX GP - SOROCHANY - ROUND 12
2 months ago 00:27:30 1
If You Can See This Video, You Are The MOST IMPORTANT CHOSEN ONE Of All Chosen Ones!
2 months ago 00:03:35 1
Moby - ’Why Does My Heart Feel So Bad? (Reprise Version)’ (Official Video) #WhyDoesMyHeartFeelSoBad
2 months ago 00:03:15 1
A Writing Exercise to Help You Meet Yourself
2 months ago 00:03:10 1
KADEBOSTANY - Walking Away feat. Alex Sid & Naile (Visualizer)
2 months ago 00:05:15 2
POWERWOLF - Fire & Forgive (Official Video) | Napalm Records
2 months ago 00:07:01 3
Easter Eggs Behind Villagers? | The Story of the Illagers
2 months ago 00:01:01 1
Why is the London Eye spinning backwards?
2 months ago 00:20:25 1
The DEADLY self-cleaning litter boxes that have flooded the market
2 months ago 00:02:03 1
✅NEURATECH Why use NeuraBot, the new #aimarketing #aim
2 months ago 00:03:58 1
【東方Eurobeat ENG SUBS】Evergreens【A-ONE】
2 months ago 00:01:57 1
0-4🔥 Real Madrid vs FC Barcelona (El Clasico 2024 Goals Highlights)