News for hackers. Stuff that matters.

satwik

Re:What the Fuck Python on Sunday July 20, 2025 @01:42AM (#44622288)
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!

Show HN: Non-intrusive AI agent to automate email driven workflows

https://www.mxtoai.com/

Hi HN! My co-founder and I spent the last 4 weeks building something we desperately needed ourselves.The Problem: We spend hours processing emails - scheduling meetings, going through long newsletters, downloading attachments to review, verifying documents like invoices, and of course taking actions on external systems (Salesforce, Asana, Jira etc) based on emails received. A lot of this can be...

( Read More... | 13 comments | 40 points | on HN )
Glad you found it informative.

I've found senior developers to have polarized opinions about the usefulness of the collection, so always good to see a review in favorable direction :)

Right, I agree with this. Reducing some contrast by using shades of grey will look more pleasant. I'll get this adjusted, thanks for the tip!
Hi, maintainer of the repo here, thanks for sharing :)

If anyone's willing to go through those examples with an interpreter on the side, you can check out https://www.wtfpython.xyz/

It's built with pyiodide, the only limitation is you may not get correct results for the examples that are version-dependent. The UX might not be great, especially on mobile (happy to hear ideas on how to improve it), but it does the job for now :)