Comment
Comment by dec0dedab0de
my favorite cheat is using locals() with string formatting something like this:
Obviously a contrived example, and it can be argued that using locals() is not very pythonic, but I think it makes the code look much nicer.