Python 101 (part 8): An Exceptionally Clever Snake
you are a complete knob no one likes your site thats why there is no coments get a life you moron
through your little thing here, i have learned how to use python.
this skill i will be able to apply to my life for the better.
thank you for this great privelage, and thanks for doing it for free.
i promise i wont use my new knowledge to hurt, only to heal, lol
thanks again
On page 7 you have:
<br />
# define error object
<br />
error = "someError"
<br />
<br />
Which I believe is depricated, or at least not good Python (though it used to be). You should do:
<br />
<br />
class error(Exception):
<br />
pass
<br />
<br />
Thanks a lot for this articles. I knew nothing about object-oriented programming before starting with this series. Now I'm learning easily other languages of the kind as javascript. And python has become my main tool for server programing and also fun trying new things. So, many many thanx!! I really appreciated the good sense of humor.
Python 101 \(part 8\): An Exceptionally Clever Snake (http://www.devshed.com/c/a/Python/Python-101-part-8-An-Exceptionally-Clever-Snake)
In this concluding article of the Python 101 series, find out how to use Python's exception-handling routines to trap and resolve program errors, learn to generate and use custom error messages, and get acquainted a bunch of useful (and free!) Python resources online.
Please discuss this article in this thread. You can read the article here (http://www.devshed.com/c/a/Python/Python-101-part-8-An-Exceptionally-Clever-Snake).