Saturday, April 2, 2011

4/2

"working with errors" in python


worked with the TRY: and EXCEPT: commands vs adding extra code to handle errors.

long story: try and except are better. You can handle unexpected errors that may come up and you dont have to add extra code for every error in your code, which makes your code harder to read and even harder to fix if someone else were to read it.

No comments:

Post a Comment