Abusing Python exceptions to turn a recursive function iterative
Abusing python can really save your life sometimes. I think my favorite recent hack has been accessing and MODIFYING callers variable, due to inability to get it passed through the Django module to the callback.  def invite_accepted(sender, email, **kwargs):
      import sys
      caller = sys._getframe(2)
      request = caller.f_locals['request']
      request.session['invite_accepted'] = True