Outline for January 28
Reading: Linux book,§1–4; text, §12
Due: Homework 2, due on February 1 at 11:55pm
- Linux
- File system: absolute, relative path (file) names; ls
- The shell, running commands
- Search path, other environment variables
- Shell wildcards
- Handling exceptions
- Using global variables as error flags [except6a.py]
- raise [except7.py]
- Common exceptions
- ZeroDivisionError — attempt to divide (or take the remainder of) something by 0
- TypeError — operation or function applied to operand of wrong type
- SyntaxError — Python parser encountered a malformed statement
- NameError — local or global name is not found
- ValueError — built-in function or operation applied to operator with illegal value
- EOFError — input function encounters an end of file
- Keyboard Interrupt — user hit the interrupt key (usually control-C)
\