from Hacker News

The Math Inspector Source Code [video]

by calhoun137 on 2/5/21, 2:41 PM with 1 comments

  • by calhoun137 on 2/5/21, 2:43 PM

    Project author here. In this video I discuss a crazy hack I discovered for the python exec function, where you can trick it into thinking you passed a dictionary as the 2nd parameter and then it will automatically trigger a series of callbacks when anything is changed.

    Wanted to share this trick with HN because I think it's really cool, and also am not sure if anyone has ever done this before.