|
Output for Script 1 |
|
Output for Script 2 |
|
Output for Script 3 |
This weeks lab involved debugging and error handling, perhaps the most frustrating part of writing scripts in Python. There are three types of errors encounter in Python: syntax errors, exceptions, and logic errors. They can arise from improper character entry into the program, or from errors in geoprocessing.
The assignment involved debugging three scripts in various ways, creating the outputs seen at right. PythonWin contains its own debugging interface, which was used to help the user locate or trap exceptions. In the Output for Script 3 (below), an error message is presented, but the script was allowed to continue. Essentially, that portion/block of script was passed over.
No comments:
Post a Comment