/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

death.andgravity.com
| | inventwithpython.com

A recent post to Reddit sparked some comments, so I wanted to clarify: In Python, hashable objects must be immutable and mutable objects cannot be hashable. (With one exception.)
1.9 parsecs

Travel
| |
| | www.learnpython.dev

Free Learn Python Course by Nina Zakharenko - An intensive two day introduction and intermediate course on Python. Video course published on Frontend Masters.
3.3 parsecs

Travel
| |
| | 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.
3.9 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?
22.5 parsecs

Travel
|