/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

mathspp.com
| | fuzzyblog.io

[AI summary] The author discusses differences between Python and Ruby regarding dictionary key access and missing keys, highlighting cultural design philosophies and the Pythonic .get() method.
2.0 parsecs

Travel
| |
| | akaptur.github.com

Nick Coghlan added another interesting note in response to my last post about creating side-effecting assignments in python. Here's Nick: @ ...
3.2 parsecs

Travel
| |
| | www.henryleach.com

I have a habit of adding return 0 to the end of my Python main() functions, even if they don't actually return anything. A friend pointed this weirdness out, and guessed, probably correctly, that this is a habit from C/C++ where returning 0 means 'everything went as expected'. But does that make any sense at all in Python?
3.1 parsecs

Travel
| |
| | tashian.com

The story of a major hash table vulnerability, and how it took a decade to uncover and resolve.
20.0 parsecs

Travel
|