miniblog.
← Back to all posts
Jun 26, 2014 at 09:21
`except BaseException` does not catch everything in Python 2, since you can throw any old-style class. Use `except` instead.
Wilfred Hughes
Related Posts
Mar 23, 2014 at 11:01
#Python surprise of the day: `x = []; x.insert(999, "foo")` does not throw an error.
Wilfred Hughes
Shared words: does, not, Python, throw Score: 63.2
Dec 31, 2016 at 01:03
To my surprise, Emacs does not use tagged values for floats, like JS implementations. Instead, it uses structs!
emacs/src/lisp.h at 53d5bd786130a937a0e691e0c470675fe9c55485 · emacs-mirror/emacs
Mirror of GNU Emacs. Contribute to emacs-mirror/emacs development by creating an account on GitHub.
Wilfred Hughes
Shared words: does, not, Use, instead Score: 56.1
Jan 30, 2014 at 20:14
Python: "\q" == "\\q" Ruby: "\q" == "q". C is as Ruby, but with a warning. In trifle lisp we will throw an error instead for clarity.
Wilfred Hughes
Shared words: Python, throw, instead Score: 43.5