Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Magic Top Hat, an infinite library for Python (github.com/lucamattiazzi)
3 points by grokkedit 5 months ago | hide | past | favorite | 2 comments
Just for fun I wanted to write a library that generates the functions you import from it at runtime using the context in which you called them.

It's just a joke, but it proves what I was always afraid of: dunder methods are way too powerful and sometimes python seems to be broken because of it.




Please put in the repo that its a joke too, I can see people actually using this, which is very scary. I only realised it was when I came to comment


I thought I was explicit enough in the README, but will add a warning as well!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: