Archives for the Date February 16th, 2008

Learning Python: Chapter 11

Because Python doesn’t guess default values, a sequence assignment like fst, snd = some_sequence works iff some_sequence has 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.