Formatting Strings and the str.format() family of functions -- Python 3.4 Notes
I have to be clear that I am obsessed with the str.format() family of functions. I've happily left the string % operator behind. I recently re-discovered the vars() function.
My current go-to technique for providing debugging information is this:
print( "note: local={local!r}, this={this!r}, that={that!r …more ...