Learning Python: Chapter 11
Saturday, 16 February 2008
- Because Python doesn’t guess default values, a sequence assignment like
fst, snd = some_sequenceworks iffsome_sequencehas length 2. - There is no auto-increment and no auto-decrement.
- Names beginning with single or double underscore have special meaning.
- Names of built-ins can be reassigned.
- Combined comparisons for range checks: x < y <= z.
I Am a Strange Loop
A Short History of Nearly Everything
Seven Languages in Seven Weeks