6 ms·
Show HN: Magic Top Hat, an infinite library for Python
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.
- voidUpdate 2y agoPlease 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
- grokkedit 2y agoI thought I was explicit enough in the README, but will add a warning as well!
- deleted 2y ago[deleted]