Python Tricks: “for” (and “while”) loops can have an “else” branch?! 00Share on PinterestThere are no images.0000
Python Tricks: Python 3.3+ has a new “faulthandler” std lib module 00Share on PinterestThere are no images.0000
Python Tricks: Python’s namedtuples can be a great alternative to defining a class manually 00Share on PinterestThere are no images.0000
Python Tricks: You can use “json.dumps()” to pretty-print Python dicts 00Share on PinterestThere are no images.0000
Python Tricks: Measure the execution time of small bits of Python code with the “timeit” module 00Share on PinterestThere are no images.0000
Python Tricks: Python’s shorthand for in-place value swapping 00Share on PinterestThere are no images.0000
Python Tricks: Functions are first-class citizens in Python 00Share on PinterestThere are no images.0000