miniblog.
← Back to all posts
Apr 17, 2014 at 15:39
Another improvement in Python 3: `assert (1 == 2, "some boring message")` raises a SyntaxWarning that you're shooting yourself in the foot.
Wilfred Hughes
Related Posts
Feb 22, 2025 at 06:04
2
@MekahimeAkari
@lifning
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off". -- Real Stroustrup quote, 1986
Wilfred Hughes
Shared words: yourself, foot Score: 26.2
Jun 4, 2014 at 08:48
PEP 3109 shows some remarkable raise abuse in Python 2: raise ((Exception, ("a", "b")), "c"), "d"
Wilfred Hughes
Shared words: Python, raises Score: 21
May 21, 2014 at 15:59
"Previously [comparing Unicode with a non-ASCII string] would raise a UnicodeDecodeError exception." Python 2.5 became more weakly typed!
Wilfred Hughes
Shared words: Python, raises Score: 21