Next:
Type
Up:
python
Previous:
Indentation using XEmacs
Contents
Index
Variables
Subsections
Type
Scope, local, global, builtin
Numbers
Operators
Strings
Formatting
Splitting strings
Regular expressions
Real life example: Msp
Real life example: log file
Lists
list comprehension
copy a list
join(), split(), convert a string to a list of characters
Searching
Sorting
Sorting in place
Return a sorted list
Sorting a list of devices
Loops over a list in pairs
zip (parsing vmstat output)
Dictionaries
Iterating over a dictionary
copy a dictionary
persistent dictionary, Tango attribute
Tuples
Tuples to lists
Sets
Special global variables