Assignment statements in Python

s = “Hello World” looks simple, but there’s much more to it than meets the eye.


Be Careful with Python’s New-Style String Format

This should have been obvious to me for a longer time, but until earlier today I did not really realize the severity of the issues caused by str.format on untrusted user input. It came up as a way to bypass the Jinja2 Sandbox in a way that would permit r...

Read more »

Python -m

python -m lets you run modules as scripts. If your module is just one .py file it'll be executed (which usually means code under if __name_...

Read more »