How python implements chained comparison operators?



Arpit Bhayani

Arpit's Newsletter

CS newsletter for the curious engineers

❤️ by 17000+ readers

If you like what you read subscribe you can always subscribe to my newsletter and get the post delivered straight to your inbox. I write essays on various engineering topics and share it through my weekly newsletter.




Other essays that you might like


How "is" operator is implemented in python?

500 views 28 likes 2021-05-31

In this video, we find out the internals of "is" operator in Python. We go through the CPython source code and answer ho...

How id() function is implemented in python?

348 views 16 likes 2021-05-24

How is `id` function implemented in Python? In this video, we explore the internals of `id` function in Python and find...

How python compares a float and an int objects?

284 views 10 likes 2021-05-13

How python internally performs the comparison of a float and an integer value? We find this out in this video. Compari...

How python optimizes integers?

276 views 26 likes 2021-05-06

In this video, we answer, How python optimizes integers? Does it cache them? We go through the CPython source code to fi...


Be a better engineer

A set of courses designed to make you a better engineer and excel at your career; no-fluff, pure engineering.


System Design Masterclass

A masterclass that helps you become great at designing scalable, fault-tolerant, and highly available systems.

Enrolled by 700+ learners

Details →

Designing Microservices

A free course to help you understand Microservices and their high-level patterns in depth.

Enrolled by 17+ learners

Details →

GitHub Outage Dissections

A free course to help you learn core engineering from outages that happened at GitHub.

Enrolled by 67+ learners

Details →

Hash Table Internals

A free course to help you learn core engineering from outages that happened at GitHub.

Enrolled by 25+ learners

Details →

BitTorrent Internals

A free course to help you understand the algorithms and strategies that power P2P networks and BitTorrent.

Enrolled by 42+ learners

Details →

Topics I talk about

Being a passionate engineer, I love to talk about a wide range of topics, but these are my personal favourites.




Arpit's Newsletter read by 17000+ engineers

🔥 Thrice a week, in your inbox, an essay about system design, distributed systems, microservices, programming languages internals, or a deep dive on some super-clever algorithm, or just a few tips on building highly scalable distributed systems.



  • v12.4.4
  • © Arpit Bhayani, 2022

Powered by this tech stack.