René's URL Explorer Experiment


Title: OOP in Python, part 8: Comparing objects - by Eric Matthes

Open Graph Title: OOP in Python, part 8: Comparing objects

X Title: OOP in Python, part 8: Comparing objects

Description: MP 47: Overriding Python's built-in comparison methods.

Open Graph Description: MP 47: Overriding Python's built-in comparison methods.

X Description: MP 47: Overriding Python's built-in comparison methods.

Opengraph URL: https://www.mostlypython.com/oop-in-python-part-8-comparing-objects/

X: @ghost

Generator: Ghost 6.52

direct link

Domain: www.mostlypython.com


Hey, it has json ld scripts:
{
    "@context": "https://schema.org",
    "@type": "Article",
    "publisher": {
        "@type": "Organization",
        "name": "Mostly Python",
        "url": "https://www.mostlypython.com/",
        "logo": {
            "@type": "ImageObject",
            "url": "https://storage.ghost.io/c/b0/88/b088fa59-ac78-44d9-9662-4c7568d7cb9a/content/images/size/w256h256/2024/02/logo_200px.png",
            "width": 60,
            "height": 60
        }
    },
    "author": {
        "@type": "Person",
        "name": "Eric Matthes",
        "url": "https://www.mostlypython.com/author/eric-matthes/",
        "sameAs": []
    },
    "headline": "OOP in Python, part 8: Comparing objects - by Eric Matthes",
    "url": "https://www.mostlypython.com/oop-in-python-part-8-comparing-objects/",
    "datePublished": "2023-08-24T16:30:04.000Z",
    "dateModified": "2024-03-27T15:49:22.000Z",
    "image": {
        "@type": "ImageObject",
        "url": "https://storage.ghost.io/c/b0/88/b088fa59-ac78-44d9-9662-4c7568d7cb9a/content/images/image/fetch/w_2000,h_2000,c_fill,f_jpg,q_auto:good,fl_progressive:steep,g_auto/https-3a-2f-2fsubstack-post-media.s3.amazonaws.com-2fpublic-2fimages-2fef90a750-1f48-4fe0-8776-94f8de508669_950x659.jpg",
        "width": 950,
        "height": 659
    },
    "keywords": "Newsletter, OOP, under the hood",
    "description": "MP 47: Overriding Python's built-in comparison methods.",
    "mainEntityOfPage": "https://www.mostlypython.com/oop-in-python-part-8-comparing-objects/"
}
    

referrerno-referrer-when-downgrade
og:site_nameMostly Python
og:typearticle
og:imagehttps://storage.ghost.io/c/b0/88/b088fa59-ac78-44d9-9662-4c7568d7cb9a/content/images/image/fetch/w_1200,h_600,c_fill,f_jpg,q_auto:good,fl_progressive:steep,g_auto/https-3a-2f-2fsubstack-post-media.s3.amazonaws.com-2fpublic-2fimages-2fef90a750-1f48-4fe0-8776-94f8de508669_950x659.jpg
article:published_time2023-08-24T16:30:04.000Z
article:modified_time2024-03-27T15:49:22.000Z
article:tagunder the hood
article:publisherhttps://www.facebook.com/ghost
twitter:cardsummary_large_image
twitter:urlhttps://www.mostlypython.com/oop-in-python-part-8-comparing-objects/
twitter:imagehttps://storage.ghost.io/c/b0/88/b088fa59-ac78-44d9-9662-4c7568d7cb9a/content/images/size/w1200/image/fetch/f_auto,q_auto:best,fl_progressive:steep/https-3a-2f-2fmostlypython.substack.com-2fapi-2fv1-2fpost_preview-2f135972143-2ftwitter.jpg
twitter:label1Written by
twitter:data1Eric Matthes
twitter:label2Filed under
twitter:data2Newsletter, OOP, under the hood
og:image:width950
og:image:height600

Links:

Mostly Python https://www.mostlypython.com
Homehttps://www.mostlypython.com/
Topicshttps://www.mostlypython.com/topics/
Serieshttps://www.mostlypython.com/series/
Abouthttps://www.mostlypython.com/about/
Contacthttps://www.mostlypython.com/contact/
Just readhttps://www.mostlypython.com/just-read/
Sign inhttps://www.mostlypython.com/oop-in-python-part-8-comparing-objects/#/portal/signin
Subscribehttps://www.mostlypython.com/oop-in-python-part-8-comparing-objects/#/portal/signup
Newsletterhttps://www.mostlypython.com/tag/newsletter/
https://www.mostlypython.com/author/eric-matthes/
Eric Mattheshttps://www.mostlypython.com/author/eric-matthes/
serieshttps://www.mostlypython.com/oop-in-python/
previous posthttps://www.mostlypython.com/oop-in-python-part-7-the-__new__/
next posthttps://www.mostlypython.com/oop-in-python-part-9-helper-methods/
1https://www.mostlypython.com/oop-in-python-part-8-comparing-objects/#footnote-1
2https://www.mostlypython.com/oop-in-python-part-8-comparing-objects/#footnote-2
3https://www.mostlypython.com/oop-in-python-part-8-comparing-objects/#footnote-3
relevant parthttps://github.com/python/cpython/blob/main/Lib/pathlib.py?ref=mostlypython.com#L674C1-L678C34
Data modelhttps://docs.python.org/3/reference/datamodel.html?ref=mostlypython.com
mostly_pythonhttps://github.com/ehmatthes/mostly_python/tree/main/mp47_oop8_comparison_methods?ref=mostlypython.com
https://www.mostlypython.com/oop-in-python-part-8-comparing-objects/#footnote-anchor-1
https://www.mostlypython.com/oop-in-python-part-8-comparing-objects/#footnote-anchor-2
https://www.mostlypython.com/oop-in-python-part-8-comparing-objects/#footnote-anchor-3
Exploring chess games MP 171: A first foray into the massive Lichess database. I've been getting back into chess since moving to North Carolina, and as part of that journey I've been wanting to analyze games in ways that weren't really possible when I was last playing By Eric Matthes Jul 9, 2026 https://www.mostlypython.com/exploring-chess-games/
I keep being be impressed by uv MP 170: It understands my old projects! A few years ago I made a small project that automatically adds borders to screenshots, because macOS doesn't have a built-in tool to easily do that. For a couple years I installed it globally on every system I used, so By Eric Matthes Jun 25, 2026 https://www.mostlypython.com/i-keep-being-be-impressed-by-uv/
An LLM can't go for a walk in the woods MP 169: But we still can, and we should keep doing so. Regular readers of Mostly Python are probably aware that I'm currently working on gh-profiler. It helps open source maintainers make better-informed decisions about how much time to invest with users who open new PRs By Eric Matthes Jun 11, 2026 https://www.mostlypython.com/an-llm-cant-go-for-a-walk-in-the-woods/
Batching API calls MP 168: An obvious speedup, with a surprising side benefit. I've been working steadily on gh-profiler, while attending PyCon US and working on other projects as well. The project makes a number of calls to GitHub's API, and then analyzes the results to generate some By Eric Matthes May 28, 2026 https://www.mostlypython.com/batching-api-calls/
Sign uphttps://www.mostlypython.com/oop-in-python-part-8-comparing-objects/#/portal/
Ghosthttps://ghost.org/

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.