wtfpython

What the f*ck Python? 😱 (by satwikkansal)

Wtfpython Alternatives

Similar projects and alternatives to wtfpython

  1. rust

    2,917 wtfpython VS rust

    Empowering everyone to build reliable and efficient software.

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. CPython

    1,555 wtfpython VS CPython

    The Python programming language

  4. TypeScript

    1,476 wtfpython VS TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  5. Django

    549 wtfpython VS Django

    The Web framework for perfectionists with deadlines.

  6. deno

    508 wtfpython VS deno

    A modern runtime for JavaScript and TypeScript.

  7. swagger-ui

    167 wtfpython VS swagger-ui

    Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.

  8. rust-playground

    The Rust Playground

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. roast

    🦋 Raku test suite (by Raku)

  11. wtfjs

    100 wtfpython VS wtfjs

    🤪 A list of funny and tricky JavaScript examples

  12. awesome-python

    An opinionated list of awesome Python frameworks, libraries, software and resources.

  13. DOMPurify

    57 wtfpython VS DOMPurify

    DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:

  14. Think-Python-2E-My_solutions

    My solutions to the exercises contained in the "Think Python 2nd Edition" book by Allen B. Downey.

  15. starlark

    27 wtfpython VS starlark

    Starlark Language

  16. python-syntax-errors

    no-op statements syntactically valid only since Python X.Y

  17. setup.py

    5 wtfpython VS setup.py

    📦 A Human's Ultimate Guide to setup.py.

  18. rdm

    2 wtfpython VS rdm

    Our regulatory documentation manager. Streamlines 62304, 14971, and 510(k) documentation for software projects. (by innolitics)

  19. macropy

    5 wtfpython VS macropy

    Macros in Python: quasiquotes, case classes, LINQ and more!

  20. python-small-examples

    告别枯燥,致力于打造 Python 实用小例子,更多Python良心教程见 https://ai-jupyter.com

  21. Pycco

    3 wtfpython VS Pycco

    Literate-style documentation generator.

  22. abmagick

    abuse ImageMagick (or GraphicsMagick) to create arbitrary files

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better wtfpython alternative or higher similarity.

wtfpython discussion

wtfpython reviews and mentions

Posts with mentions or reviews of wtfpython. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-07-19.
  • What the Fuck Python
    3 projects | news.ycombinator.com | 19 Jul 2025
    Hi, author of the repo (https://github.com/satwikkansal/wtfpython) here, pleasantly surprised to wake up to this thread about it. The intention of the project is not to put Python in a bad light relative to other languages, the intention was to explore it more deeply through (sometimes contrived) snippets that give non-obvious outputs. I believe for a regular Python programmer, the "Slippery Slopes" section is a must-know. The first section (Strain your brain), does contain some patterns that you may not ever see in real world, the goal there is to just learn about internals. Agreed some of them are very obvious for a well-learned programmer, and some of them aren't even Python specific, it does help a lot of beginner to intermediate programmers. I remember it being given as a supplementary material in one of the CS-based course.

    It is curated with something-for-everyone approach, I expect people to learn a thing or two about Python / CS after going through the snippets. I haven't updated it in a while in a major way, but looking at the feedback I'll try to organise them better, and add new snippets (I have a long personal list that I maintain) in a future release!

    1 project | news.ycombinator.com | 7 Jan 2025
  • Wtfpython
    1 project | news.ycombinator.com | 19 Jul 2025
  • Ask HN: Is there any programming language that doesn't have WTFs?
    1 project | news.ycombinator.com | 21 Apr 2025
    After reading this page:

    https://github.com/satwikkansal/wtfpython?tab=readme-ov-file#-needles-in-a-haystack-

    I wonder if there's any language that thought about all edge cases and avoided exceptions and such gotchas at the design level.

    JS is notorious for such WTFs but even Python—which I've used for over a decade now—has surprised me countless times.

    Is Haskell also like that? How about Lisps (CL, Racket, Clojure, Scheme, etc.)?

  • Interview Gone Wrong
    6 projects | news.ycombinator.com | 3 Nov 2024
    In my mind,I just automatically translate a EXPRESSION1 b EXPRESSION2 c as (a EXPRESSION1 b) and (b EXPRESSION2 c), so there's no ambiguity. But I agree, it can be VERY confusing,so I tend to write code that is easy to read without being a master. for example, think what you would have thought this evaluates to:

    False is False is False. If you thought, True, you were right :)

    I would recommend to take a look at one of my favourite repos for more[1].

    [1]https://github.com/satwikkansal/wtfpython

  • Layman's Guide to Python Built-In Functions · Matt Layman
    1 project | news.ycombinator.com | 4 Sep 2024
    See this for an explanation - https://github.com/satwikkansal/wtfpython?tab=readme-ov-file...

    > `all([])` returns True since the iterable is empty.

  • What the Fuck Python?
    1 project | news.ycombinator.com | 27 Aug 2023
  • Valid Python syntax – by Nobody has time for Python
    1 project | news.ycombinator.com | 11 Jun 2023
  • Multidimensional lists creation, why the weird behavior
    1 project | /r/Python | 22 Apr 2023
    Haven’t seen it mentioned in the replies, so here it is. Have a look at “What the f*ck Python? 😱” on GitHub: https://github.com/satwikkansal/wtfpython
  • Wat
    5 projects | news.ycombinator.com | 29 Mar 2023
    https://github.com/satwikkansal/wtfpython

    "Mutating the immutable" is my personal favourite - the second line of code fails with an exception despite having already succeeded:

     >>> t = ([1, 2], 5, 6)
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 24 Dec 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Stats

Basic wtfpython repo stats
56
36,839
8.5
8 months ago

Sponsored
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io

Did you know that Python is
the 2nd most popular programming language
based on number of references?