from Hacker News

Show HN: Magic Functions in Python

by dbieber on 6/6/22, 2:33 PM with 1 comments

  • by ttymck on 6/11/22, 2:00 AM

    Thanks for sharing, and thanks especially for the accompanying write-up. I love seeing this kind of "envelope pushing" in python -- things that make you stop and think "just because we can, does that mean we _should_?"

    It reminds me of something I hacked together a while back: compatlib[0]. I knew as I was writing it that it would be a bad idea to use in "production", but felt it was interesting nonetheless. I've been meaning to write a post similar to yours: explicitly warning against using compatlib for anything serious :)

    [0]https://github.com/tmkontra/compatlib