Settings

Theme

Show HN: Magic Top Hat, an infinite library for Python

github.com

3 points by grokkedit a year ago · 3 comments · 1 min read

Reader

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 a year ago

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

  • grokkeditOP a year ago

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

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection